Task: Program Execution
Input (English): 2, ['d', 't', 'U', 'K']
Output (English): d, t