/**
 * A photographer wants to capture a photo based on the given conditions.
 *
 * @param isPortraitMode Whether the camera is set to portrait mode or not
 * @param lightingConditions The lighting conditions in the environment
 * @return The type of photo captured based on the conditions
 *
 * Rules:
 * - If the camera is set to portrait mode and the lighting conditions are good, capture a portrait photo
 * - If the camera is set to portrait mode but the lighting conditions are poor, capture a moody photo
 * - If the camera is not set to portrait mode and the lighting conditions are good, capture a landscape photo
 * - If the camera is not set to portrait mode and the lighting conditions are poor, capture a black and white photo
 */
fun capturePhoto(isPortraitMode: Boolean, lightingConditions: String): String {

    return if (isPortraitMode) {
        if (lightingConditions == "good") {
            "Portrait photo"
        } else {
            "Moody photo"
        }
    } else {
        if (lightingConditions == "good") {
            "Landscape photo"
        } else {
            "Black and white photo"
        }
    }
}
/**
 * A photographer wants to capture a photo based on the given conditions.
 *
 * @param isPortraitMode Whether the camera is set to portrait mode or not
 * @param lightingConditions The lighting conditions in the environment
 * @return The type of photo captured based on the conditions
 *
 * Rules:
 * - If the camera is set to portrait mode and the lighting conditions are good, capture a portrait photo
 * - If the camera is set to portrait mode but the lighting conditions are poor, capture a moody photo
 * - If the camera is not set to portrait mode and the lighting conditions are good, capture a landscape photo
 * - If the camera is not set to portrait mode and the lighting conditions are poor, capture a black and white photo
 */
fun capturePhoto(isPortraitMode: Boolean, lightingConditions: String): String {
/**
 * A photographer wants to capture a photo based on the given conditions.
 *
 * @param isPortraitMode Whether the camera is set to portrait mode or not
 * @param lightingConditions The lighting conditions in the environment
 * @return The type of photo captured based on the conditions
 *
 * Rules:
 * - If the camera is set to portrait mode and the lighting conditions are good, capture a portrait photo
 * - If the camera is set to portrait mode but the lighting conditions are poor, capture a moody photo
 * - If the camera is not set to portrait mode and the lighting conditions are good, capture a landscape photo
 * - If the camera is not set to portrait mode and the lighting conditions are poor, capture a black and white photo
 */
fun capturePhoto(isPortraitMode: Boolean, lightingConditions: String): String {

    return if (isPortraitMode) {
        if (lightingConditions == "good") {
            "Portrait photo"
        } else {
            "Moody photo"
        }
    } else {
        if (lightingConditions == "good") {
            "Landscape photo"
        } else {
            "Black and white photo"
        }
    }
}