please look at the code…
Getting wrong answer
sample test cases are running perfectly, still getting wrong answer…
Hey @rabhi1611 this is my personalised code for this problem: https://ide.codingblocks.com/s/342971
You can check your mistake by taking reference from this code. If still not able to find it out. Then you can ask I’ll help you for sure 