All possible sums

Problem Name:
All possible sums
Site:HackerEarth
Links:
Tags: