Why only test case 2 fails

only test case 1 and 2 fails and i am unable to understand the issue

hi @rudragarg09006_4fa678534132a743,
here u need to find the number whose sum of digits are equal to sum of digits of its factor except 1

check here for implementation ive commented the code : https://ide.codingblocks.com/s/656874