Microsoft Interview Question

How to design a program for spell check used in Microsoft word?