bubblesort.mojo
There is a question about what should be the generated output.

Here's an approximation (doesn't quite work because pointers can't be compared for equality):

```
import testing


fn bubble_sort(seq: DTypePointer[DType.int64], L: Int) -> DTypePointer[DType.int64]:
    for _ in range(L):
        for n in range(1, L):
            if seq[n] < seq[(n - 1)]:
                seq[(n - 1)], seq[n] = seq[n], seq[(n - 1)]
    return seq


fn main() raises:
    var unsorted = List(14, 11, 19, 5, 16, 10, 19, 12, 5, 12)
    var expected = List(5, 5, 10, 11, 12, 12, 14, 16, 19, 19)
    var L = len(unsorted)
    var unsorted_arr = DTypePointer[DType.int64]().alloc(L)
    var expected_arr = DTypePointer[DType.int64]().alloc(L)
    for i in range(len(unsorted)):
        unsorted_arr[i] = unsorted[i]
    testing.assert_true(bubble_sort(unsorted_arr, L) == expected_arr)
    print("OK")
 ```