Amazon Interview Question

1. compute the points closest to origin. 2. basic bfs on a graph