Task: Program Execution
Input (English): 5, 5, ['M', 'N', 'S', '1125', 'B']
Output (English): B