Find wheter or not 2 words are anagrams
- Map each of 26 english characters (A,B,C,D ... Z) to a primer number
- Then multiply the char of each word
- Two words are anagrams if their products are the same
E.g: F(A) = 2, F(E) = 5, F(R)=7
F(ARE) = 2*5*7 = 70
F(EAR) = 5*2*7 = 70