Implemented function to check if a string is a palindrome. Implemented a function to check if two strings are anagrams of each other.