Task: Program Execution
Input (English): 2, 4, ['G', '119', '8123', 'B', '7221', '8169', '1117']
Output (English): 1198123B