Pergunta de entrevista da empresa GOPI

Write code for printing anagrams in words ?