/**
 * Given a list of strings and a number n, return a string consisting of n consecutive strings,
 * all concatenated together.
 *
 * Example:
 * strings = ["Hello", "World", "How", "Are", "You", "Doing"]
 * n = 3
 * The output should be "HelloWorldHow".
 *
 * @param strings a list of strings
 * @param n an integer representing the number of consecutive strings to concatenate
 * @return A string consisting of n consecutive strings concatenated together.
 */
fun getConsecutiveStrings(strings: List<String>, n: Int): String {

    var concatenatedString = ""
    for (i in 0 until n) {
        concatenatedString += strings[i]
    }
    return concatenatedString
}
/**
 * Given a list of strings and a number n, return a string consisting of n consecutive strings,
 * all concatenated together.
 *
 * Example:
 * strings = ["Hello", "World", "How", "Are", "You", "Doing"]
 * n = 3
 * The output should be "HelloWorldHow".
 *
 * @param strings a list of strings
 * @param n an integer representing the number of consecutive strings to concatenate
 * @return A string consisting of n consecutive strings concatenated together.
 */
fun getConsecutiveStrings(strings: List<String>, n: Int): String {
/**
 * Given a list of strings and a number n, return a string consisting of n consecutive strings,
 * all concatenated together.
 *
 * Example:
 * strings = ["Hello", "World", "How", "Are", "You", "Doing"]
 * n = 3
 * The output should be "HelloWorldHow".
 *
 * @param strings a list of strings
 * @param n an integer representing the number of consecutive strings to concatenate
 * @return A string consisting of n consecutive strings concatenated together.
 */
fun getConsecutiveStrings(strings: List<String>, n: Int): String {

    var concatenatedString = ""
    for (i in 0 until n) {
        concatenatedString += strings[i]
    }
    return concatenatedString
}