/**
 * This function finds the economist with the highest salary.
 *
 * @param salaries A dictionary of economists' names and salaries.
 * @return The name of the economist with the highest salary.
 */
fun findHighestPaid(salaries: Map<String, Double>): String {

    var highestPaid: String? = null
    var maxSalary = Double.NEGATIVE_INFINITY

    for ((economist, salary) in salaries) {
        if (salary > maxSalary) {
            highestPaid = economist
            maxSalary = salary
        }
    }

    return highestPaid ?: ""
}
/**
 * This function finds the economist with the highest salary.
 *
 * @param salaries A dictionary of economists' names and salaries.
 * @return The name of the economist with the highest salary.
 */
fun findHighestPaid(salaries: Map<String, Double>): String {
/**
 * This function finds the economist with the highest salary.
 *
 * @param salaries A dictionary of economists' names and salaries.
 * @return The name of the economist with the highest salary.
 */
fun findHighestPaid(salaries: Map<String, Double>): String {

    var highestPaid: String? = null
    var maxSalary = Double.NEGATIVE_INFINITY

    for ((economist, salary) in salaries) {
        if (salary > maxSalary) {
            highestPaid = economist
            maxSalary = salary
        }
    }

    return highestPaid ?: ""
}