/**
 * This function takes two lists of colors and returns a list of common colors
 * between the two lists.
 *
 * @param colors1 a list of colors (strings)
 * @param colors2 a list of colors (strings)
 * @return list of common colors between colors1 and colors2
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {

    val commonColors = mutableListOf<String>()

    for (color1 in colors1) {
        for (color2 in colors2) {
            if (color1.toUpperCase() == color2.toUpperCase() || color2.toUpperCase() in color1.toUpperCase()) {
                commonColors.add(color1)
                break
            }
        }
    }

    return commonColors
}

// Example usage
/**
 * This function takes two lists of colors and returns a list of common colors
 * between the two lists.
 *
 * @param colors1 a list of colors (strings)
 * @param colors2 a list of colors (strings)
 * @return list of common colors between colors1 and colors2
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {
/**
 * This function takes two lists of colors and returns a list of common colors
 * between the two lists.
 *
 * @param colors1 a list of colors (strings)
 * @param colors2 a list of colors (strings)
 * @return list of common colors between colors1 and colors2
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {

    val commonColors = mutableListOf<String>()

    for (color1 in colors1) {
        for (color2 in colors2) {
            if (color1.toUpperCase() == color2.toUpperCase() || color2.toUpperCase() in color1.toUpperCase()) {
                commonColors.add(color1)
                break
            }
        }
    }

    return commonColors
}

// Example usage