/**
 * The anthropologistSet is a set containing unique animal names observed by an anthropologist.
 * The listOfIntegers contains a list of numbers that represent the observed occurrences of each animal.
 * Complete the code to create a map that maps each animal name to its corresponding occurrence.
 *
 * @param anthropologistSet Set<String> A set of unique animal names observed by an anthropologist.
 * @param listOfIntegers List<Int> A list of integers representing the observed occurrences of each animal.
 * @return Map<String, Int> A map mapping each animal name to its corresponding occurrence.
 */
fun setConversionExercise(anthropologistSet: Set<String>, listOfIntegers: List<Int>): Map<String, Int> {

    val occurrenceMap = mutableMapOf<String, Int>()  // Initialize an empty map

    for ((index, animal) in anthropologistSet.withIndex()) {
        occurrenceMap[animal] = listOfIntegers[index]
    }

    return occurrenceMap
}
/**
 * The anthropologistSet is a set containing unique animal names observed by an anthropologist.
 * The listOfIntegers contains a list of numbers that represent the observed occurrences of each animal.
 * Complete the code to create a map that maps each animal name to its corresponding occurrence.
 *
 * @param anthropologistSet Set<String> A set of unique animal names observed by an anthropologist.
 * @param listOfIntegers List<Int> A list of integers representing the observed occurrences of each animal.
 * @return Map<String, Int> A map mapping each animal name to its corresponding occurrence.
 */
fun setConversionExercise(anthropologistSet: Set<String>, listOfIntegers: List<Int>): Map<String, Int> {
/**
 * The anthropologistSet is a set containing unique animal names observed by an anthropologist.
 * The listOfIntegers contains a list of numbers that represent the observed occurrences of each animal.
 * Complete the code to create a map that maps each animal name to its corresponding occurrence.
 *
 * @param anthropologistSet Set<String> A set of unique animal names observed by an anthropologist.
 * @param listOfIntegers List<Int> A list of integers representing the observed occurrences of each animal.
 * @return Map<String, Int> A map mapping each animal name to its corresponding occurrence.
 */
fun setConversionExercise(anthropologistSet: Set<String>, listOfIntegers: List<Int>): Map<String, Int> {

    val occurrenceMap = mutableMapOf<String, Int>()  // Initialize an empty map

    for ((index, animal) in anthropologistSet.withIndex()) {
        occurrenceMap[animal] = listOfIntegers[index]
    }

    return occurrenceMap
}