/**
 * Finds the missing numbers in a range of values.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param values A list of numbers within the range.
 * @return A list of missing numbers within the range.
 */
fun findMissingNumbers(start: Int, end: Int, values: List<Int>): List<Int>? {

    val rangeValues = (start..end).toList()
    val missingNumbers = mutableListOf<Int>()

    for (num in rangeValues) {
        if (num !in values) {
            missingNumbers.add(num)
        }
    }

    return if (missingNumbers.isEmpty()) null else missingNumbers
}
/**
 * Finds the missing numbers in a range of values.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param values A list of numbers within the range.
 * @return A list of missing numbers within the range.
 */
fun findMissingNumbers(start: Int, end: Int, values: List<Int>): List<Int>? {
/**
 * Finds the missing numbers in a range of values.
 *
 * @param start The starting number of the range (inclusive).
 * @param end The ending number of the range (inclusive).
 * @param values A list of numbers within the range.
 * @return A list of missing numbers within the range.
 */
fun findMissingNumbers(start: Int, end: Int, values: List<Int>): List<Int>? {

    val rangeValues = (start..end).toList()
    val missingNumbers = mutableListOf<Int>()

    for (num in rangeValues) {
        if (num !in values) {
            missingNumbers.add(num)
        }
    }

    return if (missingNumbers.isEmpty()) null else missingNumbers
}