Task: Program Execution
Input (English): 3, 5, ['r', '3411', 'i', 'O', 'R']
Output (English): ROi