Task: Program Execution
Input (English): 4, 7, ['1247', 's', 'J', 'w', 'X', '7211', 'c']
Output (English): c1127Xw