Leetcode 2617. Minimum Number of Visited Cells in a Grid | Hello Interview