Task: Program Execution
Input (English): [5, 5, 7, 4, 2, 2, 4, 7]
Output (English):