Number of blocks

Problem Name:
Number of blocks
Site:HackerEarth
Links:
Tags:
Problem setters: