What might be wrong in my code which is resulting in failure of test cases.
Error test case
Lakshay I have edited your code…try to submit now…you DNT need to include the condition like if endrow is greater than startrow and if endcol is greater than startcol.
You can refer to this edited code…