/**
 * This exercise requires you to find the number of times a target string appears in the concatenation
 * of all the strings in the given list.
 *
 * @param stringsList A list of strings.
 * @param target The target string to count in the concatenation.
 * @return The number of times the target string appears in the concatenation of all strings in the list.
 */
fun countConcatenation(stringsList: List<String>, target: String): Int {

    val concatenation = stringsList.joinToString("")
    val count = concatenation.count { it == target[0] }
    return count
}
/**
 * This exercise requires you to find the number of times a target string appears in the concatenation
 * of all the strings in the given list.
 *
 * @param stringsList A list of strings.
 * @param target The target string to count in the concatenation.
 * @return The number of times the target string appears in the concatenation of all strings in the list.
 */
fun countConcatenation(stringsList: List<String>, target: String): Int {
/**
 * This exercise requires you to find the number of times a target string appears in the concatenation
 * of all the strings in the given list.
 *
 * @param stringsList A list of strings.
 * @param target The target string to count in the concatenation.
 * @return The number of times the target string appears in the concatenation of all strings in the list.
 */
fun countConcatenation(stringsList: List<String>, target: String): Int {

    val concatenation = stringsList.joinToString("")
    val count = concatenation.count { it == target[0] }
    return count
}