Quarks Technosoft Interview Question

About oops concept and some coding test