Frage im Vorstellungsgespräch bei Morgan Stanley

What would be an algorithm to implement a spell check program?