Task: Program Execution
Input (English): 3, 3, ['D', 'G', 'm']
Output (English): m