Task: Program Execution
Input (English): 2, 4, ['g', '457', 'P', 'r']
Output (English): rP457