Domanda di colloquio di Microsoft

Write a basic spell checker function that checks strings for typos against a dictionary.