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