Task: Program Execution
Input (English): 2, 4, ['Q', '5705', 'G', 'r', '3391']
Output (English): rG5705