/**
 * Counts the number of digits within the selected portion of a string.
 *
 * @param string The input string to search for digits.
 * @param start The starting index of the selected portion.
 * @param end The ending index of the selected portion.
 * @return The count of digits found within the selected portion.
 */
fun countDigitsInSelection(string: String, start: Int, end: Int): Int {

    var count = 0
    for (i in start..end) {
        if (string[i].isDigit()) {
            count++
        }
    }
    return count
}
/**
 * Counts the number of digits within the selected portion of a string.
 *
 * @param string The input string to search for digits.
 * @param start The starting index of the selected portion.
 * @param end The ending index of the selected portion.
 * @return The count of digits found within the selected portion.
 */
fun countDigitsInSelection(string: String, start: Int, end: Int): Int {
/**
 * Counts the number of digits within the selected portion of a string.
 *
 * @param string The input string to search for digits.
 * @param start The starting index of the selected portion.
 * @param end The ending index of the selected portion.
 * @return The count of digits found within the selected portion.
 */
fun countDigitsInSelection(string: String, start: Int, end: Int): Int {

    var count = 0
    for (i in start..end) {
        if (string[i].isDigit()) {
            count++
        }
    }
    return count
}