Anagram flipping