Quarks Technosoft interview question

About oops concept and some coding test