Implement isAnagram(String word1, String word2) that returns true if word1 is an anagram of word2 and returns false word1 is’n an anagram of word2.
For example isAnagram(“word”, “drow”) returns true, isAnagram(“word”, “draw”) returns false.
Empty strings are not anagrams
Solution in Java
We’re going to sort characters of strings and compare
Some tests