Capgemini Engineering Interview Question

Very basic