Indeed Interview Question

1 Easy HackerRank with Sort