Rosetta Problems

Maximum Number of Moves in a Grid

https://leetcode.com/problems/maximum-number-of-moves-in-a-grid