Google interview question

design a parking system use design pattern