The smallest path

Problem Name:
The smallest path
Site:HackerEarth
Links:
Tags:
Problem setters: