Microsoft interview question

Interesting question regarding tries and spell-checking.