/**
 * As a Physical Therapist, you have a list of exercises for your patient. However, some of the exercises are
 * no longer relevant and need to be removed. Use list slicing and the 'del' statement to delete the specified
 * elements from the list.
 *
 * In this exercise, you need to delete the elements based on the provided indices.
 *
 * @param therapistNotes A list of exercises for your patient's therapy session.
 * @param indicesToDelete The indices of elements to be deleted from the list.
 * @return The updated list of exercises after removing the specified elements.
 *
 * Example:
 * val therapistNotes = mutableListOf("Stretching", "Balance exercises", "Core strengthening", "Resistance training")
 * val indicesToDelete = listOf(0, 2)
 *
 * deleteElementsListSlicingTherapist(therapistNotes, indicesToDelete)
 * >>> ['Balance exercises', 'Resistance training']
 */
fun deleteElementsListSlicingTherapist(therapistNotes: MutableList<String>, indicesToDelete: List<Int>): List<String> {

    // Delete the elements at the given indices
    therapistNotes.subList(indicesToDelete[0], indicesToDelete[1] + 1).clear()
    
    return therapistNotes
}
/**
 * As a Physical Therapist, you have a list of exercises for your patient. However, some of the exercises are
 * no longer relevant and need to be removed. Use list slicing and the 'del' statement to delete the specified
 * elements from the list.
 *
 * In this exercise, you need to delete the elements based on the provided indices.
 *
 * @param therapistNotes A list of exercises for your patient's therapy session.
 * @param indicesToDelete The indices of elements to be deleted from the list.
 * @return The updated list of exercises after removing the specified elements.
 *
 * Example:
 * val therapistNotes = mutableListOf("Stretching", "Balance exercises", "Core strengthening", "Resistance training")
 * val indicesToDelete = listOf(0, 2)
 *
 * deleteElementsListSlicingTherapist(therapistNotes, indicesToDelete)
 * >>> ['Balance exercises', 'Resistance training']
 */
fun deleteElementsListSlicingTherapist(therapistNotes: MutableList<String>, indicesToDelete: List<Int>): List<String> {
/**
 * As a Physical Therapist, you have a list of exercises for your patient. However, some of the exercises are
 * no longer relevant and need to be removed. Use list slicing and the 'del' statement to delete the specified
 * elements from the list.
 *
 * In this exercise, you need to delete the elements based on the provided indices.
 *
 * @param therapistNotes A list of exercises for your patient's therapy session.
 * @param indicesToDelete The indices of elements to be deleted from the list.
 * @return The updated list of exercises after removing the specified elements.
 *
 * Example:
 * val therapistNotes = mutableListOf("Stretching", "Balance exercises", "Core strengthening", "Resistance training")
 * val indicesToDelete = listOf(0, 2)
 *
 * deleteElementsListSlicingTherapist(therapistNotes, indicesToDelete)
 * >>> ['Balance exercises', 'Resistance training']
 */
fun deleteElementsListSlicingTherapist(therapistNotes: MutableList<String>, indicesToDelete: List<Int>): List<String> {

    // Delete the elements at the given indices
    therapistNotes.subList(indicesToDelete[0], indicesToDelete[1] + 1).clear()
    
    return therapistNotes
}