NSEIT Interview Question

asked to code bubble sort program and oops concepts