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