Pergunta de entrevista da empresa Mars

How would you approach this specific problem?