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