Bloomberg Interview Question

2D Candy crush- It's on leetcode discussions