Sort an array that holds only three distinct values — in place, in a single pass, without counting. Too many requests from your network. Please wait a minute.