Siemens interview question

mostly about testing and some oops concept