HackerRank Day 7: Regular Expressions III problem solution - TheCScience