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