Amazon Interview Question

1 . BFS 2 . ARRAYS