A blocked matrix

Problem Name:
A blocked matrix
Site:HackerEarth
Links:
Tags: