Built Robotics interview question

write an efficient anagram game using Python.