Microsoft interview question

How would I design automatic windshield wipers?