/**
 * Given an array of aerospace data and a break condition, find the intersection
 * of the data with the break condition and return the result.
 *
 * @param aerospaceData A list containing aerospace data.
 * @param breakCondition The condition at which the iteration should break.
 * @return The intersection of the aerospace data with the break condition.
 */
fun intersection(aerospaceData: List<Int>, breakCondition: Int): List<Int> {

    val intersectionData = mutableListOf<Int>()

    for (data in aerospaceData) {
        // Check if data equals the break condition
        if (data == breakCondition) {
            break  // Add the required break statement here to break the loop
        }

        // Check if data is within the required comparison range
        // Hint: Use comparison operator(s) to compare data with the break condition
        if (data > breakCondition) {  // Fill in the comparison operator for the condition
            continue
        }

        intersectionData.add(data)
    }

    return intersectionData
}
/**
 * Given an array of aerospace data and a break condition, find the intersection
 * of the data with the break condition and return the result.
 *
 * @param aerospaceData A list containing aerospace data.
 * @param breakCondition The condition at which the iteration should break.
 * @return The intersection of the aerospace data with the break condition.
 */
fun intersection(aerospaceData: List<Int>, breakCondition: Int): List<Int> {
/**
 * Given an array of aerospace data and a break condition, find the intersection
 * of the data with the break condition and return the result.
 *
 * @param aerospaceData A list containing aerospace data.
 * @param breakCondition The condition at which the iteration should break.
 * @return The intersection of the aerospace data with the break condition.
 */
fun intersection(aerospaceData: List<Int>, breakCondition: Int): List<Int> {

    val intersectionData = mutableListOf<Int>()

    for (data in aerospaceData) {
        // Check if data equals the break condition
        if (data == breakCondition) {
            break  // Add the required break statement here to break the loop
        }

        // Check if data is within the required comparison range
        // Hint: Use comparison operator(s) to compare data with the break condition
        if (data > breakCondition) {  // Fill in the comparison operator for the condition
            continue
        }

        intersectionData.add(data)
    }

    return intersectionData
}