I am unable to pass the testcase for the above mentioned problem even though my code works well for the examples given. I am assuming that I am still missing out some major case which I can’t figure out. Please help!
Here is my code: https://ide.codingblocks.com/s/393048