Log in to run or submit
Peel the matrix layer by layer using four boundaries.
Maintain top, bottom, left, right. Traverse:
top, bottom, left, right