HackerRank Day 7: Regular Expressions II problem solution - TheCScience