Siemens Interview Question

very conceptual questions in javascript.