PayPal Interview Question

Question on graphs that involved BFS