I have tried all kind of test-cases, and all are giving the correct answers, however all the test cases are failing when I submit the code. Can someone pls suggest, what’s wrong with my code along with some example test cases?
Here is the link for my code - https://ide.codingblocks.com/s/228002