Siemens interview question

Problem solving coding problems with any preferable language