/**
 * Modify the values of a map within a range using a given increment.
 *
 * @param map The map to be modified.
 * @param start The starting position of the range (inclusive).
 * @param end The ending position of the range (exclusive).
 * @param increment The increment to be added to the values within the range.
 * @return The modified map.
 */
fun modifyMapRange(map: MutableMap<String, Int>, start: Int, end: Int, increment: Int): MutableMap<String, Int> {

    for ((key, value) in map) {
        if (value is Int) { // Only modify integer values
            map[key] = if (value in start until end) value + increment else value
        }
    }
    return map
}
/**
 * Modify the values of a map within a range using a given increment.
 *
 * @param map The map to be modified.
 * @param start The starting position of the range (inclusive).
 * @param end The ending position of the range (exclusive).
 * @param increment The increment to be added to the values within the range.
 * @return The modified map.
 */
fun modifyMapRange(map: MutableMap<String, Int>, start: Int, end: Int, increment: Int): MutableMap<String, Int> {
/**
 * Modify the values of a map within a range using a given increment.
 *
 * @param map The map to be modified.
 * @param start The starting position of the range (inclusive).
 * @param end The ending position of the range (exclusive).
 * @param increment The increment to be added to the values within the range.
 * @return The modified map.
 */
fun modifyMapRange(map: MutableMap<String, Int>, start: Int, end: Int, increment: Int): MutableMap<String, Int> {

    for ((key, value) in map) {
        if (value is Int) { // Only modify integer values
            map[key] = if (value in start until end) value + increment else value
        }
    }
    return map
}