In this version, I have modified the code by combining three loops into a single loop within the same method. This enhancement has resulted in improved efficiency.
In this version, I have modified the code by combining three loops into a single loop within the same method. This enhancement has resulted in improved efficiency.