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