Rank Group interview question

Talk us through the task