Capgemini Interview Question

The way I handled the previous assignment