Realtor.com Interview Question

How to tell if two strings are anagrams, also design webpage in react