Bubble sort implementation

why we use n-1-itr in the inner loop of bubble sort?
why not just n-1?

@rockstarpkm hi please either share the code snippet you are reffering to, or ask the doubt under the relevant section.