Northrop Grumman Interview Question

How to do bubble sort algorithm