Question

Write a function to check if given two strings are anagrams of each other?

Login to Submit

Examples

Input: "silent", "listen"
Output: true
Reason: silent can be converted to listen by rearranging letters

Input: "cat", "tac"
Output: true

Input: "cat", "dog"
Output: false