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