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