Infogain Interview Question

write a code to Swap two numbers. write the algo for bubble sort.