/**
 * This function takes two lists 'a' and 'b' as input and returns a new list containing the elements
 * that are present in both lists but not in either of the lists individually.
 *
 * @param a First input list
 * @param b Second input list
 * @return A new list containing elements that are common to both input lists but not present in either of the lists individually
 *
 * Example:
 * deleteNumbers(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8))
 * Output: [1, 2, 3, 6, 7, 8]
 */
fun deleteNumbers(a: List<Int>, b: List<Int>): List<Int> {

    val result = mutableListOf<Int>()

    for (num in a) {
        if (num !in b) {
            result.add(num)
        }
    }

    for (num in b) {
        if (num !in a) {
            result.add(num)
        }
    }

    return result
}
/**
 * This function takes two lists 'a' and 'b' as input and returns a new list containing the elements
 * that are present in both lists but not in either of the lists individually.
 *
 * @param a First input list
 * @param b Second input list
 * @return A new list containing elements that are common to both input lists but not present in either of the lists individually
 *
 * Example:
 * deleteNumbers(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8))
 * Output: [1, 2, 3, 6, 7, 8]
 */
fun deleteNumbers(a: List<Int>, b: List<Int>): List<Int> {
/**
 * This function takes two lists 'a' and 'b' as input and returns a new list containing the elements
 * that are present in both lists but not in either of the lists individually.
 *
 * @param a First input list
 * @param b Second input list
 * @return A new list containing elements that are common to both input lists but not present in either of the lists individually
 *
 * Example:
 * deleteNumbers(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8))
 * Output: [1, 2, 3, 6, 7, 8]
 */
fun deleteNumbers(a: List<Int>, b: List<Int>): List<Int> {

    val result = mutableListOf<Int>()

    for (num in a) {
        if (num !in b) {
            result.add(num)
        }
    }

    for (num in b) {
        if (num !in a) {
            result.add(num)
        }
    }

    return result
}