Indeed interview question

1 Easy HackerRank with Sort