One of the test case is not passing. Please tell What to do?

I have edited your code… Try to submit it now…

Mam What was issue in my code?

Aryan, there is no need to use these conditions in your code as,
if(ec>sc) and if(er>sr)