Systematix interview question

Oops concepts and sql queries