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