Solution to Hacker Rank Language

Solution to Hacker Rank problem "Hackerrank Language"
Algorithms > Regex > Hackerrank Language