Northrop Grumman interview question

How to do bubble sort algorithm