/**
 * Given a list of shots taken by a photographer and a threshold (seconds),
 * this function counts and returns the number of shots with exposures shorter
 * than the given threshold.
 */
fun countSuccessfulShots(photoShots: List<Double>, threshold: Double): Int {

    var count = 0

    for (shot in photoShots) {
        if (shot < threshold) {
            count++
        }
    }

    return count
}
/**
 * Given a list of shots taken by a photographer and a threshold (seconds),
 * this function counts and returns the number of shots with exposures shorter
 * than the given threshold.
 */
fun countSuccessfulShots(photoShots: List<Double>, threshold: Double): Int {
/**
 * Given a list of shots taken by a photographer and a threshold (seconds),
 * this function counts and returns the number of shots with exposures shorter
 * than the given threshold.
 */
fun countSuccessfulShots(photoShots: List<Double>, threshold: Double): Int {

    var count = 0

    for (shot in photoShots) {
        if (shot < threshold) {
            count++
        }
    }

    return count
}