Did not getting the logic behind the question

Please tell me the logic ,how to solve it.

hello @mayurjhode55
basically here u need to compute factorial.
but the challenge we have is that we dont have any primitive datatype that can accomodate large factorial . so what we do is we use array to store factorial.

refer this algorithm to compute factorial and store it in array-> https://www.geeksforgeeks.org/factorial-large-number/