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