Siemens Interview Question

As mentioned in JD exactly...