correct implementation of bubble sort
palantir question