Task: Program Execution
Input (English): 5, 7, ['r', '8471', '2335', '9127', '6043', 'h', 'M']
Output (English): 6043hM