Min and Max cost

Problem Name:
Min and Max cost
Site:HackerEarth
Links:
Tags: