Task: Program Execution
Input (English): 3, 5, ['C', '4345', 'T', 't', 'U', 'p']
Output (English): UtT