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