last test case shows run error https://ide.codingblocks.com/s/51351
Hey Astha, your code is not working for large numbers. for eg. check for 400.