/**
 * This function concatenates the names of the patients and repeats the examination type.
 *
 * @param patientNames A list containing the names of the patients.
 * @param examinationType The type of examination to be performed.
 * @return A string containing the concatenated names of the patients followed by repeated examination type.
 */
fun veterinarian(patientNames: List<String>, examinationType: String): String {

    // Concatenating the names of the patients
    val patientNamesConcatenated = patientNames.joinToString("")

    // Repeating the examination type
    val examinationTypeRepeated = examinationType.repeat(patientNames.size)

    // Combining the concatenated names and repeated examination type
    val result = patientNamesConcatenated + examinationTypeRepeated

    return result
}

// Exercise usage
/**
 * This function concatenates the names of the patients and repeats the examination type.
 *
 * @param patientNames A list containing the names of the patients.
 * @param examinationType The type of examination to be performed.
 * @return A string containing the concatenated names of the patients followed by repeated examination type.
 */
fun veterinarian(patientNames: List<String>, examinationType: String): String {
/**
 * This function concatenates the names of the patients and repeats the examination type.
 *
 * @param patientNames A list containing the names of the patients.
 * @param examinationType The type of examination to be performed.
 * @return A string containing the concatenated names of the patients followed by repeated examination type.
 */
fun veterinarian(patientNames: List<String>, examinationType: String): String {

    // Concatenating the names of the patients
    val patientNamesConcatenated = patientNames.joinToString("")

    // Repeating the examination type
    val examinationTypeRepeated = examinationType.repeat(patientNames.size)

    // Combining the concatenated names and repeated examination type
    val result = patientNamesConcatenated + examinationTypeRepeated

    return result
}

// Exercise usage