/**
 * The farmer is trying to feed the farm animals with different types of feed.
 * Each animal has a specific feed requirement.
 * The animals are stored in a nested list where each inner list contains a pair with the animal's name and its feed requirement.
 * Your task is to iterate over the nested list and print the animal's name along with the feed type they require.
 * Use pair destructuring to access the animal's name and feed requirement.
 */
fun feedFarmAnimals(animals: List<List<Pair<String, String>>>) {

    for (animalGroup in animals) {
        for ((animalName, feedType) in animalGroup) {
            println("$animalName requires $feedType feed.")
        }
    }
}
/**
 * The farmer is trying to feed the farm animals with different types of feed.
 * Each animal has a specific feed requirement.
 * The animals are stored in a nested list where each inner list contains a pair with the animal's name and its feed requirement.
 * Your task is to iterate over the nested list and print the animal's name along with the feed type they require.
 * Use pair destructuring to access the animal's name and feed requirement.
 */
fun feedFarmAnimals(animals: List<List<Pair<String, String>>>) {
/**
 * The farmer is trying to feed the farm animals with different types of feed.
 * Each animal has a specific feed requirement.
 * The animals are stored in a nested list where each inner list contains a pair with the animal's name and its feed requirement.
 * Your task is to iterate over the nested list and print the animal's name along with the feed type they require.
 * Use pair destructuring to access the animal's name and feed requirement.
 */
fun feedFarmAnimals(animals: List<List<Pair<String, String>>>) {

    for (animalGroup in animals) {
        for ((animalName, feedType) in animalGroup) {
            println("$animalName requires $feedType feed.")
        }
    }
}