Task: Program Execution
Input (English): 2, 5, ['X', '7287', 'o', 'Z', 'B']
Output (English): BZo7287