Capgemini Engineering interview question

Very basic