Color the boxes

Problem Name:
Color the boxes
Site:HackerEarth
Links:
Tags:
Problem setters: