Microsoft interview question

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