Philips Interview Question

resume, oops and coding logic