/**
 * Given a list of combinations of colors (as tuples) and a specific color, the function should return a list
 * of the indices (position) where the given color occurs in each combination.
 * If the given color is not found in any of the combinations, return 'Not found'.
 *
 * @param combinations A list of color combinations (tuples)
 * @param color A specific color to search for in each combination
 * @return A list of indices (positions) where the given color occurs in each combination,
 * or 'Not found' if the color is not present in any of the combinations.
 */
fun findColors(combinations: List<List<String>>, color: String): List<Any> {

    val results = mutableListOf<Any>()
    for (combination in combinations) {
        if (color in combination) {
            results.add(combination.indexOf(color))
        } else {
            results.add("Not found")
        }
    }
    return results
}
/**
 * Given a list of combinations of colors (as tuples) and a specific color, the function should return a list
 * of the indices (position) where the given color occurs in each combination.
 * If the given color is not found in any of the combinations, return 'Not found'.
 *
 * @param combinations A list of color combinations (tuples)
 * @param color A specific color to search for in each combination
 * @return A list of indices (positions) where the given color occurs in each combination,
 * or 'Not found' if the color is not present in any of the combinations.
 */
fun findColors(combinations: List<List<String>>, color: String): List<Any> {
/**
 * Given a list of combinations of colors (as tuples) and a specific color, the function should return a list
 * of the indices (position) where the given color occurs in each combination.
 * If the given color is not found in any of the combinations, return 'Not found'.
 *
 * @param combinations A list of color combinations (tuples)
 * @param color A specific color to search for in each combination
 * @return A list of indices (positions) where the given color occurs in each combination,
 * or 'Not found' if the color is not present in any of the combinations.
 */
fun findColors(combinations: List<List<String>>, color: String): List<Any> {

    val results = mutableListOf<Any>()
    for (combination in combinations) {
        if (color in combination) {
            results.add(combination.indexOf(color))
        } else {
            results.add("Not found")
        }
    }
    return results
}