/**
 * Given a list of songs, iterate through the list and break the loop 
 * when the current song matches the artist's name.
 */
fun breakThroughLists(artist: String, songs: List<String>) {

    for (song in songs) {
        if (song == artist) {
            break
        } else {
            println(song)
        }
    }
}

// Example usage
/**
 * Given a list of songs, iterate through the list and break the loop 
 * when the current song matches the artist's name.
 */
fun breakThroughLists(artist: String, songs: List<String>) {
/**
 * Given a list of songs, iterate through the list and break the loop 
 * when the current song matches the artist's name.
 */
fun breakThroughLists(artist: String, songs: List<String>) {

    for (song in songs) {
        if (song == artist) {
            break
        } else {
            println(song)
        }
    }
}

// Example usage