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