Capgemini Engineering Interview Question

oops, since we didn't had that subject