Q: Lucy loves to play the Hop, Skip and Jump game. Given an N*M matrix and starting from cell (1,1), her challenge is to hop in an anti-clockwise direction and skip alternate cells. The goal is to find out the last cell she would hop onto.
Write an algorithm to find the last cell Lucy would hop onto after moving anti-clockwise and skipping alternate cells.