Epic interview question

Find anagram with restrictions