Microsoft interview question

Design a parking meter.