Maximum reach

Problem Name:
Maximum reach
Site:HackerEarth
Links:
Tags: