L'Oréal interview question

How did you approach this classification task ?