Microsoft Interview Question

How would I design automatic windshield wipers?