Amazon interview question

Standard Leetcode questions involving DFS, Two-Pointers, and graph traversal.