Capgemini Invent Interview Question

not much difficult.