What you need to do is => Find the Number of Trailing Zeroes at the end of N!
T on the first line of input (in this case 6) stands for the number of numbers to follow i.e., number of test cases.
Then there are T lines, each containing exactly one positive integer number N (1 <= N <= 1000000000) .
Now you need to output the total number of 0’s at occurring at the end of each N i.e., for each test cases.
6 ( this is the value of T)
3 (this and the following are values of N)
0 ( factorial of 3 = 6, so there are no trailing 0’s at the end , so answer for this case is 0)
14 ( factorial of 60 has 14 (fourteen) 0’s at the end and similarly calculate for the rest)
You can check the editorial explanation for further information here.