/**
 * The function takes two lists of colors and finds the colors that are common in both lists.
 *
 * @param colors1 A list of colors.
 * @param colors2 Another list of colors.
 * @return A list of common colors found in both input lists.
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {

    val commonColors = mutableListOf<String>()

    for (color1 in colors1) {
        for (color2 in colors2) {
            if (color1.equals(color2, ignoreCase = true)) {
                commonColors.add(color1)
                break
            }
        }
    }

    return commonColors
}
/**
 * The function takes two lists of colors and finds the colors that are common in both lists.
 *
 * @param colors1 A list of colors.
 * @param colors2 Another list of colors.
 * @return A list of common colors found in both input lists.
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {
/**
 * The function takes two lists of colors and finds the colors that are common in both lists.
 *
 * @param colors1 A list of colors.
 * @param colors2 Another list of colors.
 * @return A list of common colors found in both input lists.
 */
fun findCommonColors(colors1: List<String>, colors2: List<String>): List<String> {

    val commonColors = mutableListOf<String>()

    for (color1 in colors1) {
        for (color2 in colors2) {
            if (color1.equals(color2, ignoreCase = true)) {
                commonColors.add(color1)
                break
            }
        }
    }

    return commonColors
}