Task: Program Execution
Input (English): 5, 10, ['125', 'Q', '2385', 'D', 'O', '2243', 'r', 'P', '7015', 'R']
Output (English): O2243rP7015R