Split the balls

Problem Name:
Split the balls
Site:HackerEarth
Links:
Tags: