KPMG Interview Question

Bubble sort pseudocode and time complexity