Red Ventures Interview Question

Write an algorithm for anagram