Google Interview Question

Write a program for shortest path