In a bubble sort, you go through an array 1..n elements n-1 times. First pass you get the biggest or smallest value and swap it with whatever was in x[1]. On the second pass you go from 2..n and...