/**
 * A photographer wants to get the resolution of a photo from its information map.
 * The photo information map contains the keys 'width' and 'height' with corresponding values.
 *
 * Complete the function to retrieve the resolution of the photo by checking if the information map exists,
 * if the 'width' key exists, and if the 'height' key exists.
 * If any of these conditions are not satisfied, return 'Resolution not available!'.
 * Otherwise, return a string in the format 'Resolution: <width> x <height>'.
 *
 * Example:
 * val photoInfo = mapOf("width" to 1920, "height" to 1080)
 * getPhotoResolution(photoInfo) -> 'Resolution: 1920 x 1080'
 */
fun getPhotoResolution(photoInfo: Map<String, Int>?): String {

    if (photoInfo == null || !photoInfo.containsKey("width") || !photoInfo.containsKey("height")) {
        return "Resolution not available!"
    }

    return "Resolution: ${photoInfo["width"]} x ${photoInfo["height"]}"
}
/**
 * A photographer wants to get the resolution of a photo from its information map.
 * The photo information map contains the keys 'width' and 'height' with corresponding values.
 *
 * Complete the function to retrieve the resolution of the photo by checking if the information map exists,
 * if the 'width' key exists, and if the 'height' key exists.
 * If any of these conditions are not satisfied, return 'Resolution not available!'.
 * Otherwise, return a string in the format 'Resolution: <width> x <height>'.
 *
 * Example:
 * val photoInfo = mapOf("width" to 1920, "height" to 1080)
 * getPhotoResolution(photoInfo) -> 'Resolution: 1920 x 1080'
 */
fun getPhotoResolution(photoInfo: Map<String, Int>?): String {
/**
 * A photographer wants to get the resolution of a photo from its information map.
 * The photo information map contains the keys 'width' and 'height' with corresponding values.
 *
 * Complete the function to retrieve the resolution of the photo by checking if the information map exists,
 * if the 'width' key exists, and if the 'height' key exists.
 * If any of these conditions are not satisfied, return 'Resolution not available!'.
 * Otherwise, return a string in the format 'Resolution: <width> x <height>'.
 *
 * Example:
 * val photoInfo = mapOf("width" to 1920, "height" to 1080)
 * getPhotoResolution(photoInfo) -> 'Resolution: 1920 x 1080'
 */
fun getPhotoResolution(photoInfo: Map<String, Int>?): String {

    if (photoInfo == null || !photoInfo.containsKey("width") || !photoInfo.containsKey("height")) {
        return "Resolution not available!"
    }

    return "Resolution: ${photoInfo["width"]} x ${photoInfo["height"]}"
}