Given two strings
t is an anagram of
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Input: s = "listen", t = "silent" Output: true
Input: s = "rat", t = "car" Output: false
Input: s = "hello", t = "world" Output: false
Try it yourself
Try solving this question here: