Task: Program Execution
Input (English): [8, 4, 9, 2, 2, 7, 7, 3, 4, 4] , [3, 1, 9, 10, 2, 5, 1, 8, 10, 8]
Output (English): [2, 3, 8, 9]