Google Interview Question

design a parking system use design pattern