Perk interview question

Program for Anagram