/**
 * Given two lists of pets seen by a veterinarian, find the pets that are present in both lists.
 *
 * @param pets1 A list of pets seen by the veterinarian on a given day.
 * @param pets2 A list of pets seen by the veterinarian on another day.
 * @return A list of pets that are present in both lists.
 */
fun overlappingPets(pets1: List<String>, pets2: List<String>): List<String> {

    val intersection = pets1.intersect(pets2).toList()
    return intersection
}
/**
 * Given two lists of pets seen by a veterinarian, find the pets that are present in both lists.
 *
 * @param pets1 A list of pets seen by the veterinarian on a given day.
 * @param pets2 A list of pets seen by the veterinarian on another day.
 * @return A list of pets that are present in both lists.
 */
fun overlappingPets(pets1: List<String>, pets2: List<String>): List<String> {
/**
 * Given two lists of pets seen by a veterinarian, find the pets that are present in both lists.
 *
 * @param pets1 A list of pets seen by the veterinarian on a given day.
 * @param pets2 A list of pets seen by the veterinarian on another day.
 * @return A list of pets that are present in both lists.
 */
fun overlappingPets(pets1: List<String>, pets2: List<String>): List<String> {

    val intersection = pets1.intersect(pets2).toList()
    return intersection
}