Task: Program Execution
Input (English): 3, 4, ['L', 'i', 'P', 'X']
Output (English): XP