/**
 * Given a dictionary with persons as keys and a list of their roles as values,
 * return a list of persons who have more than one role.
 *
 * @param personRoles A dictionary with persons (String) as keys and a list of their roles (List) as values.
 * @return A list of persons (String) who have more than one role.
 */
fun findPersonsWithMultipleRoles(personRoles: Map<String, List<String>>): List<String> {

    // Use filter to find persons with multiple roles
    return personRoles.filter { it.value.size > 1 }.keys.toList()
}
/**
 * Given a dictionary with persons as keys and a list of their roles as values,
 * return a list of persons who have more than one role.
 *
 * @param personRoles A dictionary with persons (String) as keys and a list of their roles (List) as values.
 * @return A list of persons (String) who have more than one role.
 */
fun findPersonsWithMultipleRoles(personRoles: Map<String, List<String>>): List<String> {
/**
 * Given a dictionary with persons as keys and a list of their roles as values,
 * return a list of persons who have more than one role.
 *
 * @param personRoles A dictionary with persons (String) as keys and a list of their roles (List) as values.
 * @return A list of persons (String) who have more than one role.
 */
fun findPersonsWithMultipleRoles(personRoles: Map<String, List<String>>): List<String> {

    // Use filter to find persons with multiple roles
    return personRoles.filter { it.value.size > 1 }.keys.toList()
}