Task: Program Execution
Input (English): 5, 7, ['O', '3459', 'g', '2389', 'X', '9397', 'U', 'z', 'G']
Output (English): U9397X