The minimum cost of a path

Problem Name:
The minimum cost of a path
Site:HackerEarth
Links:
Tags:
Problem setters: