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