Siemens Interview Question

mostly about testing and some oops concept