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