Problem with test case 2 and 3

Can you tell why my code is failing for these test cases

Mention question and link of your code

Boston Numbers
My solution:
https://ide.codingblocks.com/s/52560