Task: Program Execution
Input (English): 6, 9, ['W', 'A', '3451', 'L', 'O', '5297', 'Z', 'T', 'r', '4321']
Output (English): 5297ZTr