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