Siemens Interview Question

OOPS concepts.