Modulus of Grid

Problem Name:
Modulus of Grid
Site:HackerEarth
Links:
Tags:
Problem setters: