HackerRank Java Anagrams problem solution - TheCScience