Broken Calculator

how am i supposed to print the digits of 500!
and calculate them without exceeding time limit because 500! is large.

@sanyamsri2001 hey sanyam there is a method exist you can compute the factorial of large no
refer this discuss for algorithm