Atidan interview question

Questions on sorting