Https://ide.codingblocks.com/s/196015

My sample test case is giving correct ans but both test cases are failing.