The maximum sum

Problem Name:
The maximum sum
Site:HackerEarth
Links:
Tags: