Balance cubes

Problem Name:
Balance cubes
Site:HackerEarth
Links:
Tags:
Problem setters: