Straightest path

Problem Name:
Straightest path
Site:HackerEarth
Links:
Tags:
Problem setters: