Anagram solver algorithm for Trustpilot