AT&T Interview Question

How do bubble sorts work?