結果 : implement the bubble sort algorithm and analyze its time complexity