/**
 * Given a veterinarian's records, iterate over a specific range and loop through the map to
 * print the details of the veterinarian.
 *
 * @param vetRecords A map containing veterinarian's records, with the keys representing names
 *                   and the values representing details of each veterinarian.
 */
fun printVetDetails(vetRecords: Map<String, Map<String, String>>) {

    // Get the number of veterinarians
    val numVets = vetRecords.size

    // Generate a range of numbers from 0 to the total number of veterinarians
    val vetRange = 0 until numVets

    // Iterate over the specific range of veterinarians and loop through the vetRecords map
    for (i in vetRange) {
        // Get the name of the veterinarian at the current index
        val vetName = vetRecords.keys.toList()[i]

        // Get the details of the veterinarian at the current index
        val vetDetails = vetRecords[vetName]

        // Print the details of the veterinarian
        println("Veterinarian Name: $vetName")
        println("Specialization: ${vetDetails!!["Specialization"]}")
        println("Experience: ${vetDetails["Experience"]}")
        println("Contact Number: ${vetDetails["Contact Number"]}")
    }
}
/**
 * Given a veterinarian's records, iterate over a specific range and loop through the map to
 * print the details of the veterinarian.
 *
 * @param vetRecords A map containing veterinarian's records, with the keys representing names
 *                   and the values representing details of each veterinarian.
 */
fun printVetDetails(vetRecords: Map<String, Map<String, String>>) {
/**
 * Given a veterinarian's records, iterate over a specific range and loop through the map to
 * print the details of the veterinarian.
 *
 * @param vetRecords A map containing veterinarian's records, with the keys representing names
 *                   and the values representing details of each veterinarian.
 */
fun printVetDetails(vetRecords: Map<String, Map<String, String>>) {

    // Get the number of veterinarians
    val numVets = vetRecords.size

    // Generate a range of numbers from 0 to the total number of veterinarians
    val vetRange = 0 until numVets

    // Iterate over the specific range of veterinarians and loop through the vetRecords map
    for (i in vetRange) {
        // Get the name of the veterinarian at the current index
        val vetName = vetRecords.keys.toList()[i]

        // Get the details of the veterinarian at the current index
        val vetDetails = vetRecords[vetName]

        // Print the details of the veterinarian
        println("Veterinarian Name: $vetName")
        println("Specialization: ${vetDetails!!["Specialization"]}")
        println("Experience: ${vetDetails["Experience"]}")
        println("Contact Number: ${vetDetails["Contact Number"]}")
    }
}