Microsoft Interview Question

Design a parking algorithm in the language of your choice