Meta Interview Question

Sorting problem and candy crush.