Ksolves interview question

Puzzle logic questions based on sorting?