/**
 * This function takes in three parameters: start, stop, and item.
 * It generates a formatted string that represents a range of numbers with a specific item.
 *
 * @param start the starting number of the range.
 * @param stop the ending number of the range.
 * @param item the item to associate with the range of numbers.
 * @return the formatted string representing the range with the item.
 */
fun createDescription(start: Int, stop: Int, item: String): String {

    return when {
        start < stop -> {
            when {
                item.isNotEmpty() -> "Within the range $start to $stop, $item is present."
                start == stop - 1 -> "Between $start and $stop, there is one number missing."
                else -> "Between $start and $stop, there are ${stop - start - 1} numbers missing."
            }
        }
        start > stop -> {
            when {
                item.isNotEmpty() -> "Within the range $stop to $start, $item is present."
                start == stop + 1 -> "Between $stop and $start, there is one number missing."
                else -> "Between $stop and $start, there are ${start - stop - 1} numbers missing."
            }
        }
        else -> "Start and stop are the same."
    }
}
/**
 * This function takes in three parameters: start, stop, and item.
 * It generates a formatted string that represents a range of numbers with a specific item.
 *
 * @param start the starting number of the range.
 * @param stop the ending number of the range.
 * @param item the item to associate with the range of numbers.
 * @return the formatted string representing the range with the item.
 */
fun createDescription(start: Int, stop: Int, item: String): String {
/**
 * This function takes in three parameters: start, stop, and item.
 * It generates a formatted string that represents a range of numbers with a specific item.
 *
 * @param start the starting number of the range.
 * @param stop the ending number of the range.
 * @param item the item to associate with the range of numbers.
 * @return the formatted string representing the range with the item.
 */
fun createDescription(start: Int, stop: Int, item: String): String {

    return when {
        start < stop -> {
            when {
                item.isNotEmpty() -> "Within the range $start to $stop, $item is present."
                start == stop - 1 -> "Between $start and $stop, there is one number missing."
                else -> "Between $start and $stop, there are ${stop - start - 1} numbers missing."
            }
        }
        start > stop -> {
            when {
                item.isNotEmpty() -> "Within the range $stop to $start, $item is present."
                start == stop + 1 -> "Between $stop and $start, there is one number missing."
                else -> "Between $stop and $start, there are ${start - stop - 1} numbers missing."
            }
        }
        else -> "Start and stop are the same."
    }
}