Traveling to different points

Problem Name:
Traveling to different points
Site:HackerEarth
Links:
Tags: