Ensys Labs interview question

Basics of oops concepts