Google Interview Question

Graph question, finding shortest path