/**
 * This exercise aims to help environmental scientists in finding common elements between two datasets using tuple unpacking
 * and the complement operator.
 *
 * Given two sets of data, your task is to complete the code below to find the common elements between the two datasets.
 * The input datasets are tuples of numbers and you need to find the numbers that exist in data_set1 but do not exist in data_set2.
 * You are not allowed to use any sets or built-in functions in Python like 'set()" or 'intersection()`.
 *
 * @param data_set1 The first dataset containing numbers.
 * @param data_set2 The second dataset containing numbers.
 * @return A tuple containing the common elements between data_set1 and data_set2.
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(2, 3, 5)) // Output: (1, 4)
 */
fun findCommonElements(data_set1: List<Int>, data_set2: List<Int>): List<Int> {

    val commonElements = data_set1.filter { element -> element !in data_set2 }
    return commonElements
}
/**
 * This exercise aims to help environmental scientists in finding common elements between two datasets using tuple unpacking
 * and the complement operator.
 *
 * Given two sets of data, your task is to complete the code below to find the common elements between the two datasets.
 * The input datasets are tuples of numbers and you need to find the numbers that exist in data_set1 but do not exist in data_set2.
 * You are not allowed to use any sets or built-in functions in Python like 'set()" or 'intersection()`.
 *
 * @param data_set1 The first dataset containing numbers.
 * @param data_set2 The second dataset containing numbers.
 * @return A tuple containing the common elements between data_set1 and data_set2.
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(2, 3, 5)) // Output: (1, 4)
 */
fun findCommonElements(data_set1: List<Int>, data_set2: List<Int>): List<Int> {
/**
 * This exercise aims to help environmental scientists in finding common elements between two datasets using tuple unpacking
 * and the complement operator.
 *
 * Given two sets of data, your task is to complete the code below to find the common elements between the two datasets.
 * The input datasets are tuples of numbers and you need to find the numbers that exist in data_set1 but do not exist in data_set2.
 * You are not allowed to use any sets or built-in functions in Python like 'set()" or 'intersection()`.
 *
 * @param data_set1 The first dataset containing numbers.
 * @param data_set2 The second dataset containing numbers.
 * @return A tuple containing the common elements between data_set1 and data_set2.
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(2, 3, 5)) // Output: (1, 4)
 */
fun findCommonElements(data_set1: List<Int>, data_set2: List<Int>): List<Int> {

    val commonElements = data_set1.filter { element -> element !in data_set2 }
    return commonElements
}