Test case is not working

I downloaded test case and run but the answer was correct , but when i submitted it it was not passing

code : - https://ide.codingblocks.com/s/271508

hello @sinhadivyam19

yeah ur code is correct .
i have manually verified ur code with the given test case and it is correct output for each input.
there might be some issue with the checker due to which it is giving wa