Block interview question

How do you implement a spell correction system