Sort command #7

Problem Name:
Sort command #7
Site:HackerRank
Links:
Tags:
Problem setters: