Task: Program Execution
Input (English): 2, 3, ['p', 'B', 'Z', '8231']
Output (English): BZ