Pass the test to implement bubble sort