/**
 * This function takes an athlete, a range start and a range end as arguments and returns a list of elements from the
 * athlete's performance list that are not equal to any value within the specified range. The range can include negative
 * values.
 *
 * Example:
 * athlete = listOf(10, -5, 8, -3, -2, 15, 6)
 * rangeStart = -10
 * rangeEnd = 10
 * findNegativeRangeNotEqual(athlete, rangeStart, rangeEnd)
 *
 * Output:
 * [-5, 15]
 */
fun findNegativeRangeNotEqual(athlete: List<Int>, rangeStart: Int, rangeEnd: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (performance in athlete) {
        if (performance < rangeStart || performance > rangeEnd) {
            result.add(performance)
        }
    }

    return result
}
/**
 * This function takes an athlete, a range start and a range end as arguments and returns a list of elements from the
 * athlete's performance list that are not equal to any value within the specified range. The range can include negative
 * values.
 *
 * Example:
 * athlete = listOf(10, -5, 8, -3, -2, 15, 6)
 * rangeStart = -10
 * rangeEnd = 10
 * findNegativeRangeNotEqual(athlete, rangeStart, rangeEnd)
 *
 * Output:
 * [-5, 15]
 */
fun findNegativeRangeNotEqual(athlete: List<Int>, rangeStart: Int, rangeEnd: Int): List<Int> {
/**
 * This function takes an athlete, a range start and a range end as arguments and returns a list of elements from the
 * athlete's performance list that are not equal to any value within the specified range. The range can include negative
 * values.
 *
 * Example:
 * athlete = listOf(10, -5, 8, -3, -2, 15, 6)
 * rangeStart = -10
 * rangeEnd = 10
 * findNegativeRangeNotEqual(athlete, rangeStart, rangeEnd)
 *
 * Output:
 * [-5, 15]
 */
fun findNegativeRangeNotEqual(athlete: List<Int>, rangeStart: Int, rangeEnd: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (performance in athlete) {
        if (performance < rangeStart || performance > rangeEnd) {
            result.add(performance)
        }
    }

    return result
}