Capgemini Engineering Interview Question

Every detail is in the description.