Task: Program Execution
Input (English): 2, 4, ['U', 'o', 'J', 'I', 'G', 'A', 'r', 'Q']
Output (English): oJI