Amdocs interview question

Bubble sort