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

Test cases not passing even though the sample output test case is being printed properly.
Please explain and point out the error.