Shortest Path Problem | CodeChef