Valerie has ordered a few items off a shopee bakery. She wants the orders to arrive in the order they are completed. The bakery has informed her that the lesser orders will be completed quicker and thus also delivered sooner. Valerie wants to know which items will arrive first.
Here is the quantity of each of her purchases:
list = [4, 9, 2, 1, 2, 6, 3]
Use the bubble sort algorithm to sort the array so that it displays the least amount of purchases to the largest amount (from left to right)