Scott Logic interview question

Identify an algorithm from a printout and suggest improvements - bubble sort