Task: Program Execution
Input (English): 2, 5, ['R', 'M', 'Z', 'J', 'z', 'Y', 'X', 't', 'I']
Output (English): zJZM