HackerRank: Tons more challenges from regex and sorting