/**
 * This exercise focuses on creating a range of negative integers given the start and stop parameters.
 *
 * @param start The starting point of the range (inclusive)
 * @param stop The endpoint of the range (exclusive)
 * @return A list of negative integers within the specified range
 *
 * The challenge is to create a function that generates a list of negative integers within the given range.
 */
fun negativeIntegerRange(start: Int, stop: Int): List<Int> {

    val negativeIntegers = mutableListOf<Int>()

    if (start > stop) {
        throw IllegalArgumentException("Start parameter should be less than the stop parameter")
    }

    for (i in start until stop) {
        negativeIntegers.add(-i)
    }

    return negativeIntegers
}
/**
 * This exercise focuses on creating a range of negative integers given the start and stop parameters.
 *
 * @param start The starting point of the range (inclusive)
 * @param stop The endpoint of the range (exclusive)
 * @return A list of negative integers within the specified range
 *
 * The challenge is to create a function that generates a list of negative integers within the given range.
 */
fun negativeIntegerRange(start: Int, stop: Int): List<Int> {
/**
 * This exercise focuses on creating a range of negative integers given the start and stop parameters.
 *
 * @param start The starting point of the range (inclusive)
 * @param stop The endpoint of the range (exclusive)
 * @return A list of negative integers within the specified range
 *
 * The challenge is to create a function that generates a list of negative integers within the given range.
 */
fun negativeIntegerRange(start: Int, stop: Int): List<Int> {

    val negativeIntegers = mutableListOf<Int>()

    if (start > stop) {
        throw IllegalArgumentException("Start parameter should be less than the stop parameter")
    }

    for (i in start until stop) {
        negativeIntegers.add(-i)
    }

    return negativeIntegers
}