Pergunta de entrevista da empresa Amazon

How would you solve ML question X?