TSS Consultancy interview question

Program to check if string is anagram.