/**
 * The farmer wants to create a list containing both fruits and vegetables
 * that he has harvested. He needs help in concatenating the two lists
 * together. However, the challenge is that he wants the resulting list to
 * contain only the first letter of each item capitalized. Can you write the
 * code to solve this problem? (Hint: use the 'capitalize()' method)
 */
fun concatenateRealLifeScenario(fruits: List<String>, vegetables: List<String>): List<String> {

    val concatenatedList = mutableListOf<String>()

    for (fruit in fruits) {
        concatenatedList.add(fruit.capitalize())
    }

    for (vegetable in vegetables) {
        concatenatedList.add(vegetable.capitalize())
    }

    return concatenatedList
}
/**
 * The farmer wants to create a list containing both fruits and vegetables
 * that he has harvested. He needs help in concatenating the two lists
 * together. However, the challenge is that he wants the resulting list to
 * contain only the first letter of each item capitalized. Can you write the
 * code to solve this problem? (Hint: use the 'capitalize()' method)
 */
fun concatenateRealLifeScenario(fruits: List<String>, vegetables: List<String>): List<String> {
/**
 * The farmer wants to create a list containing both fruits and vegetables
 * that he has harvested. He needs help in concatenating the two lists
 * together. However, the challenge is that he wants the resulting list to
 * contain only the first letter of each item capitalized. Can you write the
 * code to solve this problem? (Hint: use the 'capitalize()' method)
 */
fun concatenateRealLifeScenario(fruits: List<String>, vegetables: List<String>): List<String> {

    val concatenatedList = mutableListOf<String>()

    for (fruit in fruits) {
        concatenatedList.add(fruit.capitalize())
    }

    for (vegetable in vegetables) {
        concatenatedList.add(vegetable.capitalize())
    }

    return concatenatedList
}