NAVEX interview question

Write a Program for anagram