Capgemini interview question

string programs and dynamic memory allocation