/**
 * Given a list of notes and a list of new notes, append the new notes to the original list starting from a specific index.
 *
 * @param notes A list of string notes.
 * @param newNotes A list of string notes to be appended.
 * @param startIndex The index at which to start appending the new notes.
 * @return The original notes list with the new notes appended starting from the specified index.
 */
fun addNotes(notes: MutableList<String>, newNotes: List<String>, startIndex: Int): List<String> {

    // Adding new notes to the original list at the specified index
    notes.addAll(startIndex, newNotes)
    return notes
}
/**
 * Given a list of notes and a list of new notes, append the new notes to the original list starting from a specific index.
 *
 * @param notes A list of string notes.
 * @param newNotes A list of string notes to be appended.
 * @param startIndex The index at which to start appending the new notes.
 * @return The original notes list with the new notes appended starting from the specified index.
 */
fun addNotes(notes: MutableList<String>, newNotes: List<String>, startIndex: Int): List<String> {
/**
 * Given a list of notes and a list of new notes, append the new notes to the original list starting from a specific index.
 *
 * @param notes A list of string notes.
 * @param newNotes A list of string notes to be appended.
 * @param startIndex The index at which to start appending the new notes.
 * @return The original notes list with the new notes appended starting from the specified index.
 */
fun addNotes(notes: MutableList<String>, newNotes: List<String>, startIndex: Int): List<String> {

    // Adding new notes to the original list at the specified index
    notes.addAll(startIndex, newNotes)
    return notes
}