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