L'Oréal Interview Question

How did you approach this classification task ?