Leetcode 1559. Detect Cycles in 2D Grid | Hello Interview