/**
 * A photographer wants to print only the photos that are not marked as favorites.
 * Complete the code to print the photos that are not in the favorites list using nested loops,
 * break and continue statements, and boolean functions.
 *
 * @param photos A list of strings representing the names of the photos
 * @param favorites A list of strings representing the names of the favorite photos
 */
fun printPhotos(photos: List<String>, favorites: List<String>) {

    for (photo in photos) {
        // Check if the current photo is a favorite
        if (isFavorite(photo, favorites)) {
            continue
        }

        var photoPrinted = false
        for (char in photo) {
            // Check if the current character is a number
            if (isNumber(char)) {
                println(photo)
                photoPrinted = true
                break
            }
        }

        // Exit the outer loop if a photo is printed
        if (photoPrinted) {
            break
        }
    }
}

fun isFavorite(photo: String, favorites: List<String>): Boolean {
    return favorites.contains(photo)
}

fun isNumber(char: Char): Boolean {
    return char.isDigit()
}
/**
 * A photographer wants to print only the photos that are not marked as favorites.
 * Complete the code to print the photos that are not in the favorites list using nested loops,
 * break and continue statements, and boolean functions.
 *
 * @param photos A list of strings representing the names of the photos
 * @param favorites A list of strings representing the names of the favorite photos
 */
fun printPhotos(photos: List<String>, favorites: List<String>) {
/**
 * A photographer wants to print only the photos that are not marked as favorites.
 * Complete the code to print the photos that are not in the favorites list using nested loops,
 * break and continue statements, and boolean functions.
 *
 * @param photos A list of strings representing the names of the photos
 * @param favorites A list of strings representing the names of the favorite photos
 */
fun printPhotos(photos: List<String>, favorites: List<String>) {

    for (photo in photos) {
        // Check if the current photo is a favorite
        if (isFavorite(photo, favorites)) {
            continue
        }

        var photoPrinted = false
        for (char in photo) {
            // Check if the current character is a number
            if (isNumber(char)) {
                println(photo)
                photoPrinted = true
                break
            }
        }

        // Exit the outer loop if a photo is printed
        if (photoPrinted) {
            break
        }
    }
}

fun isFavorite(photo: String, favorites: List<String>): Boolean {
    return favorites.contains(photo)
}

fun isNumber(char: Char): Boolean {
    return char.isDigit()
}