Moving Stones Until Consecutive
Sort the three stones; the minimum follows from the two gaps, and the maximum is the total number of empty spots between them.
Sort the three stones; the minimum follows from the two gaps, and the maximum is the total number of empty spots between them.