Humancloud Interview Question

write bubble sort algorithm using single for loop