/**
 * This function takes a list of strings and a separator as input
 * It concatenates all the strings using the separator in between each string
 */
fun concatenateStrings(strings: List<String>, separator: String): String {

    var result = ""
    for (i in strings.indices) {
        result += if (i != strings.size - 1) {
            strings[i] + separator
        } else {
            strings[i]
        }
    }
    return result
}
/**
 * This function takes a list of strings and a separator as input
 * It concatenates all the strings using the separator in between each string
 */
fun concatenateStrings(strings: List<String>, separator: String): String {
/**
 * This function takes a list of strings and a separator as input
 * It concatenates all the strings using the separator in between each string
 */
fun concatenateStrings(strings: List<String>, separator: String): String {

    var result = ""
    for (i in strings.indices) {
        result += if (i != strings.size - 1) {
            strings[i] + separator
        } else {
            strings[i]
        }
    }
    return result
}