Philips interview question

Background