Capgemini Invent interview question

Basic qa