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