i need to write a program that takes two strings of at most a length of 500, and outputs whether or not they are anagrams
Example of an anagram :
Tom Marvolo Riddle
I am Lord Voldemort
i'm not sure how i would go about doing this. do i need to see if both strings equal each other as far as letters go? how would i even accomplish that?