Distribution of coins

Problem Name:
Distribution of coins
Site:HackerEarth
Links:
Tags: