/**
 * This exercise requires deleting specific elements from the input string and then creating a tuple using the modified string.
 *
 * @param vetStr A string representing the veterinarian's name and the list of pets they treat in the format "<vet_name>:<pet1>,<pet2>,<pet3>..."
 * @param petName The name of the pet that needs to be removed from the list.
 * @return A tuple containing the veterinarian's name and the updated list of pets they treat, without the specified pet.
 */
fun deleteAndCreateVetTuple(vetStr: String, petName: String): Pair<String, List<String>> {

    // Extract veterinarian's name from input string
    val (vetName, petList) = vetStr.split(":")
    
    // Split the list of pets into individual pet names
    val pets = petList.split(",")
    
    // Remove the specified pet from the list
    pets.toMutableList().remove(petName)
    
    // Create a new tuple with the veterinarian's name and the updated list of pets
    return Pair(vetName, pets)
}
/**
 * This exercise requires deleting specific elements from the input string and then creating a tuple using the modified string.
 *
 * @param vetStr A string representing the veterinarian's name and the list of pets they treat in the format "<vet_name>:<pet1>,<pet2>,<pet3>..."
 * @param petName The name of the pet that needs to be removed from the list.
 * @return A tuple containing the veterinarian's name and the updated list of pets they treat, without the specified pet.
 */
fun deleteAndCreateVetTuple(vetStr: String, petName: String): Pair<String, List<String>> {
/**
 * This exercise requires deleting specific elements from the input string and then creating a tuple using the modified string.
 *
 * @param vetStr A string representing the veterinarian's name and the list of pets they treat in the format "<vet_name>:<pet1>,<pet2>,<pet3>..."
 * @param petName The name of the pet that needs to be removed from the list.
 * @return A tuple containing the veterinarian's name and the updated list of pets they treat, without the specified pet.
 */
fun deleteAndCreateVetTuple(vetStr: String, petName: String): Pair<String, List<String>> {

    // Extract veterinarian's name from input string
    val (vetName, petList) = vetStr.split(":")
    
    // Split the list of pets into individual pet names
    val pets = petList.split(",")
    
    // Remove the specified pet from the list
    pets.toMutableList().remove(petName)
    
    // Create a new tuple with the veterinarian's name and the updated list of pets
    return Pair(vetName, pets)
}