rotate

fun rotate(lo: Int, mid: Int, hi: Int)