Task: Program Execution
Input (English): 1, 4, ['Q', 'X', '631', '705', 'G']
Output (English): 705631XQ