Week 8: December 28 - January 10. Functions. Part 1
The word is an anagram of another word, if it can be obtained by rearrangement of its letters.
Two words are given in different lines. The words consist of lowercase letters and digits. The lengths of each word is no more than 100.
Print "YES" if the words are anagrams of each other and "NO" otherwise.