Pregunta de entrevista de Optum

Write a program on anagrams? Puzzles kind of program logics