Not able to pass testcase 0

here is my code

@chirag.goel360 you have taken max size of your res array as 500 but factorial of large numbers can have digits greater than 500 in that case you code may fail,take max size of your res array as 2000 it will work fine.