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