Maximum Number of Moves in a Grid

Maximum Number of Moves in a Grid - Coding Problem | K5kC