HashedIn by Deloitte interview question

Write a program for anagram?and about strings