KPMG interview question

Bubble sort pseudocode and time complexity