Task: Program Execution
Input (English): 4, 5, ['G', 'D', 'B', 'C', 'p', 'i']
Output (English): C, p