A game of tiles

Problem Name:
A game of tiles
Site:HackerEarth
Links:
Tags: