Deloitte interview question

Q: find out the final answer for the bubble sort