Google interview question

Graph question, finding shortest path