Crazy Labs interview question

Basic OOP questions, SQL query, one coding exercise