What's the doubt in this code? Why the test cases are not being passing

I have edited your code… You have interchanged m and n in the input… Now the code is working fine… Try to submit it now…