Google interview question

Graph based find a path problem