Bloomberg interview question

candy crush. it's on leetcode