/**
 * Given a map 'persons' where keys are names and values are phone numbers,
 * write a function that returns a new map containing persons who do not have a
 * phone number associated with their name.
 *
 * @param persons A map containing names as keys and phone numbers as values
 * @return A new map containing names of persons who do not have a phone number
 */
fun getPersonsWithNoPhoneNumbers(persons: Map<String, String>): Map<String, String?> {

    // Initialize an empty map to store persons with no phone numbers
    val personsWithNoPhone = mutableMapOf<String, String?>()

    // Iterate over each person in the original map
    for ((person, phone) in persons) {
        // Check if the person has a phone number or not
        if (phone.isNullOrEmpty()) {
            // Add the person to the new map
            personsWithNoPhone[person] = null
        }
    }

    // Return the new map
    return personsWithNoPhone
}
/**
 * Given a map 'persons' where keys are names and values are phone numbers,
 * write a function that returns a new map containing persons who do not have a
 * phone number associated with their name.
 *
 * @param persons A map containing names as keys and phone numbers as values
 * @return A new map containing names of persons who do not have a phone number
 */
fun getPersonsWithNoPhoneNumbers(persons: Map<String, String>): Map<String, String?> {
/**
 * Given a map 'persons' where keys are names and values are phone numbers,
 * write a function that returns a new map containing persons who do not have a
 * phone number associated with their name.
 *
 * @param persons A map containing names as keys and phone numbers as values
 * @return A new map containing names of persons who do not have a phone number
 */
fun getPersonsWithNoPhoneNumbers(persons: Map<String, String>): Map<String, String?> {

    // Initialize an empty map to store persons with no phone numbers
    val personsWithNoPhone = mutableMapOf<String, String?>()

    // Iterate over each person in the original map
    for ((person, phone) in persons) {
        // Check if the person has a phone number or not
        if (phone.isNullOrEmpty()) {
            // Add the person to the new map
            personsWithNoPhone[person] = null
        }
    }

    // Return the new map
    return personsWithNoPhone
}