Siemens interview question

Python basic knowledge and solutions.