/**
 * Given two lists containing the names of fruits and vegetables that a farmer grows,
 * concatenate all the strings in both lists and return the resulting string.
 *
 * Example:
 * val fruits = listOf("apple", "banana", "orange")
 * val vegetables = listOf("carrot", "tomato", "potato")
 * concatenateStrings(fruits, vegetables) -> "applebananatorangecarrotpotatotomato"
 */
fun concatenateStrings(fruits: List<String>, vegetables: List<String>): String {

    // Initialize an empty string to store the concatenated strings
    var concatenatedString = ""

    // Loop through each fruit in the first list and concatenate it to the string
    for (fruit in fruits) {
        concatenatedString += fruit
    }

    // Loop through each vegetable in the second list and concatenate it to the string
    for (vegetable in vegetables) {
        concatenatedString += vegetable
    }

    // Return the final concatenated string
    return concatenatedString
}
/**
 * Given two lists containing the names of fruits and vegetables that a farmer grows,
 * concatenate all the strings in both lists and return the resulting string.
 *
 * Example:
 * val fruits = listOf("apple", "banana", "orange")
 * val vegetables = listOf("carrot", "tomato", "potato")
 * concatenateStrings(fruits, vegetables) -> "applebananatorangecarrotpotatotomato"
 */
fun concatenateStrings(fruits: List<String>, vegetables: List<String>): String {
/**
 * Given two lists containing the names of fruits and vegetables that a farmer grows,
 * concatenate all the strings in both lists and return the resulting string.
 *
 * Example:
 * val fruits = listOf("apple", "banana", "orange")
 * val vegetables = listOf("carrot", "tomato", "potato")
 * concatenateStrings(fruits, vegetables) -> "applebananatorangecarrotpotatotomato"
 */
fun concatenateStrings(fruits: List<String>, vegetables: List<String>): String {

    // Initialize an empty string to store the concatenated strings
    var concatenatedString = ""

    // Loop through each fruit in the first list and concatenate it to the string
    for (fruit in fruits) {
        concatenatedString += fruit
    }

    // Loop through each vegetable in the second list and concatenate it to the string
    for (vegetable in vegetables) {
        concatenatedString += vegetable
    }

    // Return the final concatenated string
    return concatenatedString
}