/**
 * Given a list of farmers, create a set containing the names of farmers who are not satisfied with their harvest.
 *
 * @param farmersList A list of farmer names and their satisfaction status (True or False)
 * @return A set containing the names of the unsatisfied farmers
 *
 * Example:
 * val farmers = listOf(Pair("John", true), Pair("Mary", false), Pair("James", false), Pair("Sarah", true))
 * createFarmersSet(farmers) // Output: setOf("Mary", "James")
 */
fun createFarmersSet(farmersList: List<Pair<String, Boolean>>): Set<String> {

    val unsatisfiedFarmers = mutableSetOf<String>()

    for ((farmer, satisfaction) in farmersList) {
        if (!satisfaction) {
            unsatisfiedFarmers.add(farmer)
        }
    }

    return unsatisfiedFarmers
}
/**
 * Given a list of farmers, create a set containing the names of farmers who are not satisfied with their harvest.
 *
 * @param farmersList A list of farmer names and their satisfaction status (True or False)
 * @return A set containing the names of the unsatisfied farmers
 *
 * Example:
 * val farmers = listOf(Pair("John", true), Pair("Mary", false), Pair("James", false), Pair("Sarah", true))
 * createFarmersSet(farmers) // Output: setOf("Mary", "James")
 */
fun createFarmersSet(farmersList: List<Pair<String, Boolean>>): Set<String> {
/**
 * Given a list of farmers, create a set containing the names of farmers who are not satisfied with their harvest.
 *
 * @param farmersList A list of farmer names and their satisfaction status (True or False)
 * @return A set containing the names of the unsatisfied farmers
 *
 * Example:
 * val farmers = listOf(Pair("John", true), Pair("Mary", false), Pair("James", false), Pair("Sarah", true))
 * createFarmersSet(farmers) // Output: setOf("Mary", "James")
 */
fun createFarmersSet(farmersList: List<Pair<String, Boolean>>): Set<String> {

    val unsatisfiedFarmers = mutableSetOf<String>()

    for ((farmer, satisfaction) in farmersList) {
        if (!satisfaction) {
            unsatisfiedFarmers.add(farmer)
        }
    }

    return unsatisfiedFarmers
}