Code Review Constructing A Lexicon And Frequency Array From A Long String 2 Solutions