adding in hackerrank sort1 solution