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