UBS interview question

Implement vector class, queue from linked list and one array DSA Difference between new in cpp and malloc in C