GlobalLogic interview question

Write DSA code for check anagram with using built-in function.