Octane Interview Question

2d array DFS leetcode medium