hackerrank game of thrones 1 ( anagram / palindrome )