Optum interview question

Write a program on anagrams? Puzzles kind of program logics