Question 6
Rebecca the beaver has cubes of different sizes, as shown below. The numbers represent the cubes’ sizes.

Rebecca wants to arrange the cubes from smallest to largest, from left to right, by repeatedly swapping two neighboring cubes. What is the minimum number of swaps needed?

Rebecca wants to arrange the cubes from smallest to largest, from left to right, by repeatedly swapping two neighboring cubes. What is the minimum number of swaps needed?