Deloitte Interview Question

Write a program for shortest path problem.