BuyHatke interview question

Basic approach on Dijkstra's Algorithm