Task: Program Execution
Input (English): 3, 4, ['P', '9865', 'Q', 'O']
Output (English): QO