Thoughtworks Interview Question

How do you handle the edge cases?