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