My code was running good for many custom inputs but it is passing only for one test case, can you please help and correct me.
This is the question https://online.codingblocks.com/app/player/208414/content/198578/5385/code-challenge
This is my code
https://ide.codingblocks.com/s/643205