ABC interview question

Time complexity of bubble sort