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

is this code correct ??
giving correct output for test case