/**
 * Generates a list of records for various species.
 *
 * @return a list of records where each record is a Pair containing the species name and the number of individuals
 */
fun generateRecords(): List<Pair<String, Int>> {

    val records = listOf(
        "Lion" to 5,
        "Tiger" to 2,
        "Elephant" to 10,
        "Giraffe" to 3,
        "Lion" to 3,
        "Tiger" to 1
    )
    return records
}

fun countRecords(records: List<Pair<String, Int>>, specificSpecies: String): Int {
    return records.filter { it.first == specificSpecies }.sumBy { it.second }
}
/**
 * Generates a list of records for various species.
 *
 * @return a list of records where each record is a Pair containing the species name and the number of individuals
 */
fun generateRecords(): List<Pair<String, Int>> {
/**
 * Generates a list of records for various species.
 *
 * @return a list of records where each record is a Pair containing the species name and the number of individuals
 */
fun generateRecords(): List<Pair<String, Int>> {

    val records = listOf(
        "Lion" to 5,
        "Tiger" to 2,
        "Elephant" to 10,
        "Giraffe" to 3,
        "Lion" to 3,
        "Tiger" to 1
    )
    return records
}

fun countRecords(records: List<Pair<String, Int>>, specificSpecies: String): Int {
    return records.filter { it.first == specificSpecies }.sumBy { it.second }
}