Anti-cyclic grids

Problem Name:
Anti-cyclic grids
Site:HackerEarth
Links:
Tags:
Problem setters: