Implement a function that checks if a given string is an anagram of another string.
MediumProblem Statement
Implement a function that checks if a given string is an anagram of another string.
Sample Input
str1 = "listen", str2 = "silent"
Sample Output
true
Limits
Time: 2s · Memory: 256 MB