Thoughtworks interview question

How do you handle the edge cases?