/**
 * Given a list of photographer counts and a threshold, return a list of counts
 * where outliers (counts greater than threshold) are filtered out.
 *
 * @param photographerCounts A list of integer values representing photographer counts
 * @param threshold The maximum count value to include in the final list
 * @return A list of counts without any outliers
 */
fun filterOutliers(photographerCounts: List<Int>, threshold: Int): List<Int> {

    return photographerCounts.filter { it <= threshold }
}
/**
 * Given a list of photographer counts and a threshold, return a list of counts
 * where outliers (counts greater than threshold) are filtered out.
 *
 * @param photographerCounts A list of integer values representing photographer counts
 * @param threshold The maximum count value to include in the final list
 * @return A list of counts without any outliers
 */
fun filterOutliers(photographerCounts: List<Int>, threshold: Int): List<Int> {
/**
 * Given a list of photographer counts and a threshold, return a list of counts
 * where outliers (counts greater than threshold) are filtered out.
 *
 * @param photographerCounts A list of integer values representing photographer counts
 * @param threshold The maximum count value to include in the final list
 * @return A list of counts without any outliers
 */
fun filterOutliers(photographerCounts: List<Int>, threshold: Int): List<Int> {

    return photographerCounts.filter { it <= threshold }
}