Special paths

Problem Name:
Special paths
Site:HackerEarth
Links:
Tags:
Problem setters: