Siemens Interview Question

Question related to oops