Capgemini interview question

Dynamic memory allocation