A grid

Problem Name:
A grid
Site:HackerEarth
Links:
Tags:
Problem setters: