Solution Approach of December Long challenge of Digit Matrix

Can anyone tell me the approach of December Long term’s problem Digit matrix’s approach?
https://www.codechef.com/DEC20B/problems/DGMATRIX

1 Like