Working solution for Alphabet Soup algorithm.