Accenture interview question

Car garage, object oriented problem