Accenture interview question

OOPS concepts and SQL related