Task: Program Execution
Input (English): 2, ['X', 'L', 'R', 'x']
Output (English): R, x