Write a function to check if two strings are anagrams of each other [closed]

I want to make a function of checking if we write a string so it is anagrams of each other or not?

I am expecting a solution or a approach to solve this problem. I have tried but I am not uderstaning that how it will check the string as it is anagram or not.