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