Dropbox Interview Question

design a spell-checking algorithm