Task: Program Execution
Input (English): 2, 4, ['X', '9969', 'Q', 'G']
Output (English): GQ9969