Deloitte Interview Question

Q: find out the final answer for the bubble sort