Task: Program Execution
Input (English): 5, 5, ['q', 'a', 'n', 'J', 'O', 'V', 'm']
Output (English): O