/**
 * This function divides a given string into multiple substrings of equal length using a specified divisor.
 *
 * @param string The string to be divided.
 * @param divisor The number of parts to divide the string into.
 * @return A list of substrings with equal length.
 */
fun divideString(string: String, divisor: Int): List<String> {

    val dividedStrings = mutableListOf<String>()
    val stringLength = string.length
    val substringLength = stringLength / divisor

    var startIndex = 0
    var endIndex = substringLength

    repeat(divisor) {
        dividedStrings.add(string.substring(startIndex, endIndex))
        startIndex = endIndex
        endIndex += substringLength
    }

    return dividedStrings
}
/**
 * This function divides a given string into multiple substrings of equal length using a specified divisor.
 *
 * @param string The string to be divided.
 * @param divisor The number of parts to divide the string into.
 * @return A list of substrings with equal length.
 */
fun divideString(string: String, divisor: Int): List<String> {
/**
 * This function divides a given string into multiple substrings of equal length using a specified divisor.
 *
 * @param string The string to be divided.
 * @param divisor The number of parts to divide the string into.
 * @return A list of substrings with equal length.
 */
fun divideString(string: String, divisor: Int): List<String> {

    val dividedStrings = mutableListOf<String>()
    val stringLength = string.length
    val substringLength = stringLength / divisor

    var startIndex = 0
    var endIndex = substringLength

    repeat(divisor) {
        dividedStrings.add(string.substring(startIndex, endIndex))
        startIndex = endIndex
        endIndex += substringLength
    }

    return dividedStrings
}