/**
 * Given a string, print the characters within the specified start and end indices.
 *
 * @param string The input string.
 * @param start The starting index.
 * @param end The ending index.
 */
fun printPattern(string: String, start: Int, end: Int) {

    var counter = start
    
    while (counter < end) {
        if (counter < string.length) {
            println(string[counter])
        }
        counter++
    }
}
/**
 * Given a string, print the characters within the specified start and end indices.
 *
 * @param string The input string.
 * @param start The starting index.
 * @param end The ending index.
 */
fun printPattern(string: String, start: Int, end: Int) {
/**
 * Given a string, print the characters within the specified start and end indices.
 *
 * @param string The input string.
 * @param start The starting index.
 * @param end The ending index.
 */
fun printPattern(string: String, start: Int, end: Int) {

    var counter = start
    
    while (counter < end) {
        if (counter < string.length) {
            println(string[counter])
        }
        counter++
    }
}