Please enter your email address or userHandle.
Given a number n, write code to find the sum of digits in the factorial of the number.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integer n, the number.
Print the sum of digits in the factorial of the number.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.