Philips interview question

resume, oops and coding logic