Here, is the link.
Getting runtime error in test case 3,4 and 5
Getting runtime error on test cases 2,3 and 4.
Your code seems to be write, give me sometime I’ll debug it and let you know. Till then you can do next question.
Hey @pranjal123, I have given input for test case 3,4 & 5 and it’s not showing output. Can you share your code with some comments so that it’s easily to debug cause I have spend several hours trying to correct your approach but can’t find one. Please share your code with few comments so that I can help you 
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.