Task: Program Execution
Input (English): [12, 0, 6, 11, 7, 2, 1, 5]
Output (English): [0, 55440, 0, 0, 0, 0, 0, 0]