Pergunta de entrevista da empresa Microsoft

Write a function to solve an anagram without using classes like StringBuilder etc.