/**
 * Given two lists of integers, remove the common elements and return the resulting list.
 *
 * @param list1 a list of integers
 * @param list2 a list of integers
 * @return a list of integers without the common elements
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val difference = mutableListOf<Int>()

    for (num1 in list1) {
        var found = false

        for (num2 in list2) {
            if (num1 == num2) {
                found = true
                break
            }
        }

        if (!found) {
            difference.add(num1)
        }
    }

    return difference
}
/**
 * Given two lists of integers, remove the common elements and return the resulting list.
 *
 * @param list1 a list of integers
 * @param list2 a list of integers
 * @return a list of integers without the common elements
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * Given two lists of integers, remove the common elements and return the resulting list.
 *
 * @param list1 a list of integers
 * @param list2 a list of integers
 * @return a list of integers without the common elements
 */
fun removeCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val difference = mutableListOf<Int>()

    for (num1 in list1) {
        var found = false

        for (num2 in list2) {
            if (num1 == num2) {
                found = true
                break
            }
        }

        if (!found) {
            difference.add(num1)
        }
    }

    return difference
}