/**
 * This function takes two lists and combines them to create a new list containing all unique elements.
 * The function uses a for loop to iterate through each element in the first list and checks if it exists
 * in the second list. If not, the element is appended to the combined list. Finally, the combined list is returned.
 *
 * @param list1 The first list with elements to be combined
 * @param list2 The second list with elements to be combined
 * @return A new list with all unique elements from the two input lists
 */
fun combineLists(list1: List<Any>, list2: List<Any>): List<Any> {

    val combinedList = mutableListOf<Any>()
    
    for (item in list1) {
        if (item !in list2) {
            combinedList.add(item)
        }
    }
    
    for (element in list2) {
        if (element !in list1 && element !in combinedList) {
            combinedList.add(element)
        }
    }
    
    return combinedList
}
/**
 * This function takes two lists and combines them to create a new list containing all unique elements.
 * The function uses a for loop to iterate through each element in the first list and checks if it exists
 * in the second list. If not, the element is appended to the combined list. Finally, the combined list is returned.
 *
 * @param list1 The first list with elements to be combined
 * @param list2 The second list with elements to be combined
 * @return A new list with all unique elements from the two input lists
 */
fun combineLists(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists and combines them to create a new list containing all unique elements.
 * The function uses a for loop to iterate through each element in the first list and checks if it exists
 * in the second list. If not, the element is appended to the combined list. Finally, the combined list is returned.
 *
 * @param list1 The first list with elements to be combined
 * @param list2 The second list with elements to be combined
 * @return A new list with all unique elements from the two input lists
 */
fun combineLists(list1: List<Any>, list2: List<Any>): List<Any> {

    val combinedList = mutableListOf<Any>()
    
    for (item in list1) {
        if (item !in list2) {
            combinedList.add(item)
        }
    }
    
    for (element in list2) {
        if (element !in list1 && element !in combinedList) {
            combinedList.add(element)
        }
    }
    
    return combinedList
}