Meta interview question

Sorting problem and candy crush.