/**
 * This exercise requires concatenating strings while iterating over a specific range.
 *
 * Given a starting value and an ending value, your task is to iterate over the range
 * and concatenate each value with the subsequent numbers as strings.
 *
 * Example:
 * If the start value is 10 and the end value is 15, the expected output is:
 * "101112131415"
 *
 * Your task is to complete the code below to solve the exercise.
 */
fun concatenateStrings(start: Int, end: Int): String {

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

    // Iterate over the range from start to end (exclusive)
    for (i in start until end) {
        // Concatenate the current value with the subsequent numbers as strings
        // Challenge: Concatenate numbers in a very concise way without using toString() or string interpolation
        result += i.toChar() + (i + 1 until end).joinToString("") { it.toChar().toString() }
    }

    // Return the final result
    return result
}
/**
 * This exercise requires concatenating strings while iterating over a specific range.
 *
 * Given a starting value and an ending value, your task is to iterate over the range
 * and concatenate each value with the subsequent numbers as strings.
 *
 * Example:
 * If the start value is 10 and the end value is 15, the expected output is:
 * "101112131415"
 *
 * Your task is to complete the code below to solve the exercise.
 */
fun concatenateStrings(start: Int, end: Int): String {
/**
 * This exercise requires concatenating strings while iterating over a specific range.
 *
 * Given a starting value and an ending value, your task is to iterate over the range
 * and concatenate each value with the subsequent numbers as strings.
 *
 * Example:
 * If the start value is 10 and the end value is 15, the expected output is:
 * "101112131415"
 *
 * Your task is to complete the code below to solve the exercise.
 */
fun concatenateStrings(start: Int, end: Int): String {

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

    // Iterate over the range from start to end (exclusive)
    for (i in start until end) {
        // Concatenate the current value with the subsequent numbers as strings
        // Challenge: Concatenate numbers in a very concise way without using toString() or string interpolation
        result += i.toChar() + (i + 1 until end).joinToString("") { it.toChar().toString() }
    }

    // Return the final result
    return result
}