Cells in a matrix

Problem Name:
Cells in a matrix
Site:HackerEarth
Links:
Tags:
Problem setters: