/**
 * Given a dictionary containing names of photographers as keys and their respective photo counts as values,
 * find the photographer(s) with the highest number of photos and return their names in a list.
 *
 * @param photosDict A dictionary mapping photographer names to their photo counts.
 * @return A list of photographer names with the highest photo count.
 */
fun checkPhotos(photosDict: Map<String, Int>): List<String> {

    var maxCount = -1
    val maxPhotographers = mutableListOf<String>()

    for ((photographer, count) in photosDict) {
        if (count > maxCount) {
            maxCount = count
            maxPhotographers.clear()
            maxPhotographers.add(photographer)
        } else if (count == maxCount) {
            maxPhotographers.add(photographer)
        }
    }

    return maxPhotographers
}
/**
 * Given a dictionary containing names of photographers as keys and their respective photo counts as values,
 * find the photographer(s) with the highest number of photos and return their names in a list.
 *
 * @param photosDict A dictionary mapping photographer names to their photo counts.
 * @return A list of photographer names with the highest photo count.
 */
fun checkPhotos(photosDict: Map<String, Int>): List<String> {
/**
 * Given a dictionary containing names of photographers as keys and their respective photo counts as values,
 * find the photographer(s) with the highest number of photos and return their names in a list.
 *
 * @param photosDict A dictionary mapping photographer names to their photo counts.
 * @return A list of photographer names with the highest photo count.
 */
fun checkPhotos(photosDict: Map<String, Int>): List<String> {

    var maxCount = -1
    val maxPhotographers = mutableListOf<String>()

    for ((photographer, count) in photosDict) {
        if (count > maxCount) {
            maxCount = count
            maxPhotographers.clear()
            maxPhotographers.add(photographer)
        } else if (count == maxCount) {
            maxPhotographers.add(photographer)
        }
    }

    return maxPhotographers
}