/**
 * Modify the titles of all songs in the given list by adding the artist's name at the beginning.
 * If the song title already starts with the artist's name, append ' - Remix' at the end of the title.
 *
 * @param artist The name of the artist.
 * @param songs A list of strings representing song titles.
 * @return A modified list of song titles.
 */
fun modifySongTitle(artist: String, songs: List<String>): List<String> {

    val modifiedSongs = songs.map { song ->
        if (song.startsWith(artist)) {
            song
        } else {
            "$artist - $song"
        }
    }
    return modifiedSongs.map { title ->
        if (title.startsWith(artist)) {
            "$title - Remix"
        } else {
            title
        }
    }
}
/**
 * Modify the titles of all songs in the given list by adding the artist's name at the beginning.
 * If the song title already starts with the artist's name, append ' - Remix' at the end of the title.
 *
 * @param artist The name of the artist.
 * @param songs A list of strings representing song titles.
 * @return A modified list of song titles.
 */
fun modifySongTitle(artist: String, songs: List<String>): List<String> {
/**
 * Modify the titles of all songs in the given list by adding the artist's name at the beginning.
 * If the song title already starts with the artist's name, append ' - Remix' at the end of the title.
 *
 * @param artist The name of the artist.
 * @param songs A list of strings representing song titles.
 * @return A modified list of song titles.
 */
fun modifySongTitle(artist: String, songs: List<String>): List<String> {

    val modifiedSongs = songs.map { song ->
        if (song.startsWith(artist)) {
            song
        } else {
            "$artist - $song"
        }
    }
    return modifiedSongs.map { title ->
        if (title.startsWith(artist)) {
            "$title - Remix"
        } else {
            title
        }
    }
}