Lenovo interview question

Write an algorithm to demonstrate bubble sort.