sample input are correct but test case is giving right output. ide: https://ide.codingblocks.com/s/193542
@Vishal123 hello vishal, your code is correct and passing all test cases .
pls submit again