Working solution to AlphabetSoup problem.