/**
 * This function replaces certain notes in a musician's performance with new ones.
 *
 * @param notes A list of notes played by the musician.
 * @param replaceIndices A list of indices representing the positions of the notes to be replaced.
 * @param newNotes A list of new notes to replace the existing ones.
 * @return The modified list of notes after replacing the specified indices with new notes.
 */
fun replaceNotes(notes: MutableList<String>, replaceIndices: List<Int>, newNotes: List<String>): List<String> {

    for ((index, newNote) in replaceIndices.zip(newNotes)) {
        notes[index] = newNote
    }
    return notes
}
/**
 * This function replaces certain notes in a musician's performance with new ones.
 *
 * @param notes A list of notes played by the musician.
 * @param replaceIndices A list of indices representing the positions of the notes to be replaced.
 * @param newNotes A list of new notes to replace the existing ones.
 * @return The modified list of notes after replacing the specified indices with new notes.
 */
fun replaceNotes(notes: MutableList<String>, replaceIndices: List<Int>, newNotes: List<String>): List<String> {
/**
 * This function replaces certain notes in a musician's performance with new ones.
 *
 * @param notes A list of notes played by the musician.
 * @param replaceIndices A list of indices representing the positions of the notes to be replaced.
 * @param newNotes A list of new notes to replace the existing ones.
 * @return The modified list of notes after replacing the specified indices with new notes.
 */
fun replaceNotes(notes: MutableList<String>, replaceIndices: List<Int>, newNotes: List<String>): List<String> {

    for ((index, newNote) in replaceIndices.zip(newNotes)) {
        notes[index] = newNote
    }
    return notes
}