My code fails in test case number 4

Can you please send me the input and the expected output of test case number 4?

Hello @himanshu_goyal the test case is very big.
please share your code so that i can check what is wrong and why it is not passing.

Actually i have written thecode in java. But the logic remains the same

@himanshu_goyal if your code is in java then you should raise the doubt again because they will be able to help you in the better way:

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.