Philips interview question

Question about C++.