Sorting: Comparator | HackerRank
Write a Comparator for sorting elements in an array.