Task: Program Execution
Input (English): 5, 5, ['q', 'H', 'U', 'a', 'Q', 'O']
Output (English): Q