Deloitte interview question

Write a java program for Anagram