My code isnt working . where did i go wrong?

hi @pmschhabra you are changing the values of row, col in the for loop as well, and when you find a condition to be satisfied. So actually you end up with twice decrement or increment. So remove the col – ,row++ statements from your nested loop.