Task: Program Execution
Input (English): 1, 2, ['d', 'Q']
Output (English): Qd