Leetcode 2577. Minimum Time to Visit a Cell In a Grid | Hello Interview