Bloomberg Interview Question

A 1-D Candy Crush Game