Given an MxN grid,you're currently a (1,1) cell.Your'challenge is to hop in anti clockwise direction skipping alternate cells.
If you were to follow this pattern what's the last cell you will land at.
for example for a 3x3 matrix shown below
29 8 37
15 41 3
1 10 14
The last cell will be (2,2) :41 according to the following pattern
29->1->14->37->41
cells skipped 15,10,3 and 8