CLEAR Interview Question

2D depth first search / leetcode hard