Maximum and minimum sums

Problem Name:
Maximum and minimum sums
Site:HackerEarth
Links:
Tags: