I tried with a bunch of ways but none of them passes . I don't have a clue where did the infinite loop come from even if I change the loops into finite loops (using counter)