LTIMindtree Interview Question

Bubble sort logic, OOPs concepts