/**
 * Given a palette and a list of new colors, add the new colors to the palette.
 *
 * @param palette A list of colors currently in the palette.
 * @param newColors A list of new colors to be added to the palette.
 * @return The updated palette after adding the new colors.
 */
fun addColorsToPalette(palette: MutableList<String>, newColors: List<String>): List<String> {

    for (color in newColors) {
        // Check if the color already exists in the palette
        if (color in palette) {
            println("$color already exists in the palette.")
        } else {
            // Add the color to the palette
            palette.add(color)
            println("$color added to the palette.")
        }
    }
    return palette
}
/**
 * Given a palette and a list of new colors, add the new colors to the palette.
 *
 * @param palette A list of colors currently in the palette.
 * @param newColors A list of new colors to be added to the palette.
 * @return The updated palette after adding the new colors.
 */
fun addColorsToPalette(palette: MutableList<String>, newColors: List<String>): List<String> {
/**
 * Given a palette and a list of new colors, add the new colors to the palette.
 *
 * @param palette A list of colors currently in the palette.
 * @param newColors A list of new colors to be added to the palette.
 * @return The updated palette after adding the new colors.
 */
fun addColorsToPalette(palette: MutableList<String>, newColors: List<String>): List<String> {

    for (color in newColors) {
        // Check if the color already exists in the palette
        if (color in palette) {
            println("$color already exists in the palette.")
        } else {
            // Add the color to the palette
            palette.add(color)
            println("$color added to the palette.")
        }
    }
    return palette
}