/**
 * Given a string, start and end index, and number of iterations, execute a block of code multiple times.
 *
 * @param string The string to index.
 * @param start The starting index.
 * @param end The ending index.
 * @param iterations The number of times to execute the code block.
 */
fun executeCodeMultipleTimes(string: String, start: Int, end: Int, iterations: Int) {

    repeat(iterations) {
        var result = ""
        for (j in start..end) {
            result += string[j]
        }
        print(result)
    }
}
/**
 * Given a string, start and end index, and number of iterations, execute a block of code multiple times.
 *
 * @param string The string to index.
 * @param start The starting index.
 * @param end The ending index.
 * @param iterations The number of times to execute the code block.
 */
fun executeCodeMultipleTimes(string: String, start: Int, end: Int, iterations: Int) {
/**
 * Given a string, start and end index, and number of iterations, execute a block of code multiple times.
 *
 * @param string The string to index.
 * @param start The starting index.
 * @param end The ending index.
 * @param iterations The number of times to execute the code block.
 */
fun executeCodeMultipleTimes(string: String, start: Int, end: Int, iterations: Int) {

    repeat(iterations) {
        var result = ""
        for (j in start..end) {
            result += string[j]
        }
        print(result)
    }
}