Amazon Interview Question

dijkstra algorithm based simple ques was asked.