Task: Program Execution
Input (English): 4, 6, ['B', '5021', 'M', 'Z', 'n', 'O', 'T', '2267']
Output (English): ZnO