Cross the River

Problem Name:
Cross the River
Site:HackerEarth
Links:
Tags: