Siemens Interview Question

OOP / problem solving (pseudo code)