Task: Program Execution
Input (English): 3, 4, ['x', 'E', 'B', 'q']
Output (English): qB