One left-to-right bubble pass: swap adjacent if out of order; return result.
bubblePass([3, 1, 2]) -> [1, 3, 2]