Sorts. r/dailyprogrammers, trees. Preparation