Siemens interview question

Write positive and negative test case for given scenario.