ABC interview question

How to clean the data