Amazon interview question

Find shortest path between two points in a direct graph