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