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