WADIC interview question

It was some sorting question.