/**
 * Given a list of words and a break word, concatenate all the words
 * until the break word appears. Then, break the loop using a break statement.
 * Return the concatenated string.
 *
 * @param wordList A list of words
 * @param breakWord The word at which the loop should break
 * @return The concatenated string
 */
fun concatenateBreakStatements(wordList: List<String>, breakWord: String): String {

    var result = ""
    for (word in wordList) {
        result += word
        if (word == breakWord) {
            break
        }
    }
    return result
}
/**
 * Given a list of words and a break word, concatenate all the words
 * until the break word appears. Then, break the loop using a break statement.
 * Return the concatenated string.
 *
 * @param wordList A list of words
 * @param breakWord The word at which the loop should break
 * @return The concatenated string
 */
fun concatenateBreakStatements(wordList: List<String>, breakWord: String): String {
/**
 * Given a list of words and a break word, concatenate all the words
 * until the break word appears. Then, break the loop using a break statement.
 * Return the concatenated string.
 *
 * @param wordList A list of words
 * @param breakWord The word at which the loop should break
 * @return The concatenated string
 */
fun concatenateBreakStatements(wordList: List<String>, breakWord: String): String {

    var result = ""
    for (word in wordList) {
        result += word
        if (word == breakWord) {
            break
        }
    }
    return result
}