Maximize the Earning

Problem Name:
Maximize the Earning
Site:HackerEarth
Links:
Tags:
Problem setters: