Pergunta de entrevista da empresa Bloomberg

Candy crush. Very classical BB interview question.