/**
 * Given a collection of songs and a song title, this function searches for the song in the collection.
 *
 * @param collection A list of strings representing song titles.
 * @param title The title of the song to be searched.
 * @return The title of the song found in the collection, or "Not found" if the song is not in the collection.
 */
fun findSongInCollection(collection: List<String>, title: String): String {

    var foundSong = "Not found"

    for (song in collection) {
        if (song == title || song.equals(title, ignoreCase = true)) {
            foundSong = song
        }

        if (song in foundSong || song.toLowerCase() in foundSong) {
            foundSong = "$foundSong, $song"
        }
    }

    return foundSong
}
/**
 * Given a collection of songs and a song title, this function searches for the song in the collection.
 *
 * @param collection A list of strings representing song titles.
 * @param title The title of the song to be searched.
 * @return The title of the song found in the collection, or "Not found" if the song is not in the collection.
 */
fun findSongInCollection(collection: List<String>, title: String): String {
/**
 * Given a collection of songs and a song title, this function searches for the song in the collection.
 *
 * @param collection A list of strings representing song titles.
 * @param title The title of the song to be searched.
 * @return The title of the song found in the collection, or "Not found" if the song is not in the collection.
 */
fun findSongInCollection(collection: List<String>, title: String): String {

    var foundSong = "Not found"

    for (song in collection) {
        if (song == title || song.equals(title, ignoreCase = true)) {
            foundSong = song
        }

        if (song in foundSong || song.toLowerCase() in foundSong) {
            foundSong = "$foundSong, $song"
        }
    }

    return foundSong
}