Pregunta de entrevista de Tata Consultancy Services (North America)

How can you optimise bubble sort?