/**
 * Given a dictionary of photographer's photos and their corresponding number of likes,
 * return the name of the photo with the highest number of likes.
 *
 * @param photographerPhotos A map where the keys are photo names (String) and the values are the number of likes (Int).
 * @return The name (String) of the photo with the most likes.
 *
 * Example:
 * findPhotoWithMostLikes(mapOf("beautiful_sunset.jpg" to 100, "vibrant_flowers.jpg" to 80, "majestic_mountains.jpg" to 150)) -> "majestic_mountains.jpg"
 */
fun findPhotoWithMostLikes(photographerPhotos: Map<String, Int>): String {

    var mostLikes = -1
    var mostLikedPhoto = ""
    for ((photo, likes) in photographerPhotos) {
        if (likes > mostLikes) {
            mostLikes = likes
            mostLikedPhoto = photo
        }
    }
    return mostLikedPhoto
}
/**
 * Given a dictionary of photographer's photos and their corresponding number of likes,
 * return the name of the photo with the highest number of likes.
 *
 * @param photographerPhotos A map where the keys are photo names (String) and the values are the number of likes (Int).
 * @return The name (String) of the photo with the most likes.
 *
 * Example:
 * findPhotoWithMostLikes(mapOf("beautiful_sunset.jpg" to 100, "vibrant_flowers.jpg" to 80, "majestic_mountains.jpg" to 150)) -> "majestic_mountains.jpg"
 */
fun findPhotoWithMostLikes(photographerPhotos: Map<String, Int>): String {
/**
 * Given a dictionary of photographer's photos and their corresponding number of likes,
 * return the name of the photo with the highest number of likes.
 *
 * @param photographerPhotos A map where the keys are photo names (String) and the values are the number of likes (Int).
 * @return The name (String) of the photo with the most likes.
 *
 * Example:
 * findPhotoWithMostLikes(mapOf("beautiful_sunset.jpg" to 100, "vibrant_flowers.jpg" to 80, "majestic_mountains.jpg" to 150)) -> "majestic_mountains.jpg"
 */
fun findPhotoWithMostLikes(photographerPhotos: Map<String, Int>): String {

    var mostLikes = -1
    var mostLikedPhoto = ""
    for ((photo, likes) in photographerPhotos) {
        if (likes > mostLikes) {
            mostLikes = likes
            mostLikedPhoto = photo
        }
    }
    return mostLikedPhoto
}