Qualcomm interview question

write a bubble sort in C