In Bubble Sort there is a loop within a loop. Hence, we can say that the Best Case and the Worst Case is O(n^2)