Siemens interview question

SOLID principle and code session