Capgemini interview question

The way I handled the previous assignment