Task: Program Execution
Input (English): 4, 4, ['E', 'g', 'x', 'S']
Output (English): S