Microsoft Interview Question

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