/**
 * Given a dictionary representing nurse details with negative integer values, modify the values to their absolute values.
 *
 * @param nurseDict A dictionary containing nurse details with negative integer values.
 * @return Modified dictionary with absolute values of the negative integers.
 */
fun modifyDictionary(nurseDict: Map<String, Any>): Map<String, Any> {

    val modifiedDict = mutableMapOf<String, Any>()

    // Iterate over each key-value pair in the nurseDict
    for ((key, value) in nurseDict) {
        // Check if the value is a negative integer
        if (value is Int && value < 0) {
            // Modify the value to its absolute value
            modifiedDict[key] = Math.abs(value)
        } else {
            // Add the key-value pair as it is to the modifiedDict
            modifiedDict[key] = value
        }
    }

    return modifiedDict
}

// Example usage:
/**
 * Given a dictionary representing nurse details with negative integer values, modify the values to their absolute values.
 *
 * @param nurseDict A dictionary containing nurse details with negative integer values.
 * @return Modified dictionary with absolute values of the negative integers.
 */
fun modifyDictionary(nurseDict: Map<String, Any>): Map<String, Any> {
/**
 * Given a dictionary representing nurse details with negative integer values, modify the values to their absolute values.
 *
 * @param nurseDict A dictionary containing nurse details with negative integer values.
 * @return Modified dictionary with absolute values of the negative integers.
 */
fun modifyDictionary(nurseDict: Map<String, Any>): Map<String, Any> {

    val modifiedDict = mutableMapOf<String, Any>()

    // Iterate over each key-value pair in the nurseDict
    for ((key, value) in nurseDict) {
        // Check if the value is a negative integer
        if (value is Int && value < 0) {
            // Modify the value to its absolute value
            modifiedDict[key] = Math.abs(value)
        } else {
            // Add the key-value pair as it is to the modifiedDict
            modifiedDict[key] = value
        }
    }

    return modifiedDict
}

// Example usage: