Amazon Interview Question

Leetcode questions - graph, trees question