Capgemini interview question

Basis from the Engineering project