If conditions are wrong. Will give incorrect output for 2x3 Matrix

It will fail for below input:
2 3
2 5 8
4 0 -1

the if conditions should have <= instead of <.

hi @omkaralternative_a96332ff52ec51e9, I dont think so please try in code once and confirm

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.