Task: Program Execution
Input (English): 4, 7, ['p', 'b', 'B', '1771', 'p', 'v', '4481', 'D']
Output (English): 1844vp1771