Everbridge interview question

Java program to find Anagram , String reverse