Siemens Interview Question

apti round was little tough (time constraint)