HackerRank Sorting Array of Strings in c problem solution - TheCScience