Amazon Interview Question

1 simple BFS 2 easy leetcode