Can someone point out the mistake in my approach...↵
[Problem Link](https://leetcode.com/problems/minimum-number-of-visited-cells-in-a-grid/description/)↵
[Code](https://pastebin.com/JkPSgRcK)
[Problem Link](https://leetcode.com/problems/minimum-number-of-visited-cells-in-a-grid/description/)↵
[Code](https://pastebin.com/JkPSgRcK)