Antra interview question

Object-oriented problem and database problem