/**
 * This function takes a list of coordinates and finds the species present at each coordinate.
 * It uses branching statements and iterating over the sequence to solve the exercise.
 */
fun findSpecies(coordinates: List<Pair<Int, Int>>): List<String> {

    val speciesPresent = mutableListOf<String>()

    for (coordinate in coordinates) {
        val (latitude, longitude) = coordinate

        when {
            latitude > 0 && longitude > 0 -> speciesPresent.add("Species A")
            latitude < 0 && longitude > 0 -> speciesPresent.add("Species B")
            latitude < 0 && longitude < 0 -> speciesPresent.add("Species C")
            latitude > 0 && longitude < 0 -> speciesPresent.add("Species D")
            else -> speciesPresent.add("Unknown")
        }
    }

    return speciesPresent
}
/**
 * This function takes a list of coordinates and finds the species present at each coordinate.
 * It uses branching statements and iterating over the sequence to solve the exercise.
 */
fun findSpecies(coordinates: List<Pair<Int, Int>>): List<String> {
/**
 * This function takes a list of coordinates and finds the species present at each coordinate.
 * It uses branching statements and iterating over the sequence to solve the exercise.
 */
fun findSpecies(coordinates: List<Pair<Int, Int>>): List<String> {

    val speciesPresent = mutableListOf<String>()

    for (coordinate in coordinates) {
        val (latitude, longitude) = coordinate

        when {
            latitude > 0 && longitude > 0 -> speciesPresent.add("Species A")
            latitude < 0 && longitude > 0 -> speciesPresent.add("Species B")
            latitude < 0 && longitude < 0 -> speciesPresent.add("Species C")
            latitude > 0 && longitude < 0 -> speciesPresent.add("Species D")
            else -> speciesPresent.add("Unknown")
        }
    }

    return speciesPresent
}