Siemens interview question

More about basics of javascript.