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