Where Each Word Appears — hard Python for AI problem | Incognition