Task: Program Execution
Input (English): 1, 3, ['p', '2257', 'r', 'P']
Output (English): r2257p