Accenture interview question

OOP theoretical knowledge, SQL queries