Task: Program Execution
Input (English): 5, 5, ['G', '9105', '3349', 'H', 'd']
Output (English): d