Task: Program Execution
Input (English): 2, 3, ['B', 'G', 'z', 'i']
Output (English): Gz