/**
 * Given a start and stop value, this function finds the intersection of two ranges.
 * The intersection is the common values between the first range and the second range.
 */
fun findIntersection(start: Int, stop: Int): List<Int> {

    // Define a variable to store the intersection values
    val intersection = mutableListOf<Int>()

    // Create a range from the start value to the stop value
    val range1 = (start..stop).toList()

    // Loop through the range1 values
    for (num1 in range1) {
        // Create a second range from the start value to the stop value
        val range2 = (start..stop).toList()

        // Loop through the range2 values
        for (num2 in range2) {
            // Check if the current value of range1 is equal to the current value of range2
            if (num1 == num2) {
                // Add the common value to the intersection list
                intersection.add(num1)
                // Break out of the inner loop
                break
            }
        }
    }

    // Return the intersection list
    return intersection
}
/**
 * Given a start and stop value, this function finds the intersection of two ranges.
 * The intersection is the common values between the first range and the second range.
 */
fun findIntersection(start: Int, stop: Int): List<Int> {
/**
 * Given a start and stop value, this function finds the intersection of two ranges.
 * The intersection is the common values between the first range and the second range.
 */
fun findIntersection(start: Int, stop: Int): List<Int> {

    // Define a variable to store the intersection values
    val intersection = mutableListOf<Int>()

    // Create a range from the start value to the stop value
    val range1 = (start..stop).toList()

    // Loop through the range1 values
    for (num1 in range1) {
        // Create a second range from the start value to the stop value
        val range2 = (start..stop).toList()

        // Loop through the range2 values
        for (num2 in range2) {
            // Check if the current value of range1 is equal to the current value of range2
            if (num1 == num2) {
                // Add the common value to the intersection list
                intersection.add(num1)
                // Break out of the inner loop
                break
            }
        }
    }

    // Return the intersection list
    return intersection
}