Amazon interview question

Return array containing shortest path from starting to ending node in a graph