Re-arrange the sequence of colors such that the minimal difference between a given color and any of its predecessors is maximized.