Task: Program Execution
Input (English): 2, 2, ['P', 'G']
Output (English): G