Amazon interview question

bfs binary search lc hard