The complexity of bubble sort algorithm is