LTIMindtree interview question

Bubble sort logic, OOPs concepts