Not able to understand the question

Please help me in understanding the question.

@zanj0 Basically will you will be given a matrix with colour of black and white cells. You can place a eraser of size k x K at any block with the leftmost corner will be i,j and you can cover up down and right upto k size. you have to tell the maximum number of white horizontal or vertical lines after your operation.

I got the idea that some kind of prefix sum will be used here but I am unable to get the reccurence relation. Please help me in getting the reccurence relation/ approach for the problem.

Code URL : https://pastebin.com/njU1kBAt

1 TC not passing. Code URL : https://pastebin.com/gPJsk13C

@zanj0 Please use coding blocks ide for code pasting. We are not allowed to use other ide’s .

Sure. URL : https://ide.codingblocks.com/s/212199

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.