Valid Anagram
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return .
s = "rat", t = "car", return .
Note:
You may assume the string contains only lowercase alphabets.
Follow up:
What if the inputs contain unicode characters How would you adapt your solution to such case
A) Sort both strings and compare if they are equal
B) Use a hash table to count the occurrences of each character
C) Convert both strings to ASCII values and check if they are equal
D) Use regular expressions to check if the strings are anagrams