Leetcode 2684. Maximum Number of Moves in a Grid | Hello Interview