Minimum possible sum

Problem Name:
Minimum possible sum
Site:HackerEarth
Links:
Tags: