I am trying to solve the problem with looping through ah huge number (100000 elements )array but it\'s not successful on huge number although it works on small number array,