Question d’entretien chez Amazon

How would you solve ML question X?