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