/**
 * Given the farm area and the farm owner's name, determine the crop that the farmer should plant.
 * The farmer has three options:
 * 1. If the farm area is less than 10 acres, the farmer should plant potatoes.
 * 2. If the farm owner is 'John' and the farm area is greater than or equal to 10 acres, the farmer should plant corn.
 * 3. For any other farm owner and a farm area greater than or equal to 10 acres, the farmer should plant wheat.
 *
 * @param farmArea The area of the farm in acres.
 * @param farmOwner The name of the farm owner.
 * @return The recommended crop for the farmer to plant.
 */
fun findCrop(farmArea: Int, farmOwner: String): String {

    return when {
        farmArea < 10 -> "potatoes"
        farmOwner == "John" && farmArea >= 10 -> "corn"
        else -> "wheat"
    }
}
/**
 * Given the farm area and the farm owner's name, determine the crop that the farmer should plant.
 * The farmer has three options:
 * 1. If the farm area is less than 10 acres, the farmer should plant potatoes.
 * 2. If the farm owner is 'John' and the farm area is greater than or equal to 10 acres, the farmer should plant corn.
 * 3. For any other farm owner and a farm area greater than or equal to 10 acres, the farmer should plant wheat.
 *
 * @param farmArea The area of the farm in acres.
 * @param farmOwner The name of the farm owner.
 * @return The recommended crop for the farmer to plant.
 */
fun findCrop(farmArea: Int, farmOwner: String): String {
/**
 * Given the farm area and the farm owner's name, determine the crop that the farmer should plant.
 * The farmer has three options:
 * 1. If the farm area is less than 10 acres, the farmer should plant potatoes.
 * 2. If the farm owner is 'John' and the farm area is greater than or equal to 10 acres, the farmer should plant corn.
 * 3. For any other farm owner and a farm area greater than or equal to 10 acres, the farmer should plant wheat.
 *
 * @param farmArea The area of the farm in acres.
 * @param farmOwner The name of the farm owner.
 * @return The recommended crop for the farmer to plant.
 */
fun findCrop(farmArea: Int, farmOwner: String): String {

    return when {
        farmArea < 10 -> "potatoes"
        farmOwner == "John" && farmArea >= 10 -> "corn"
        else -> "wheat"
    }
}