WizardQuant interview question

How to clean the data in the vector?