X-Press Feeders interview question

Solve Anagram DSA only using dictionary