embedUR systems interview question

Bubble sort and memory allocation in c