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