/**
 * This exercise requires the firefighter to find the product of all numbers in a given list that are less than a given threshold.
 *
 * @param numbersList A list of numbers.
 * @param threshold A number that represents the maximum value for multiplication.
 * @return The product of all numbers in the list that are less than the threshold.
 *
 * Example:
 * multiplyLessThan(listOf(1, 2, 3, 4, 5), 3) // 2
 * multiplyLessThan(listOf(10, 20, 30, 40, 50), 25) // 20
 */
fun multiplyLessThan(numbersList: List<Int>, threshold: Int): Int {

    var product = 1

    for (number in numbersList) {
        if (number < threshold) {
            product *= number
        }
    }

    return product
}
/**
 * This exercise requires the firefighter to find the product of all numbers in a given list that are less than a given threshold.
 *
 * @param numbersList A list of numbers.
 * @param threshold A number that represents the maximum value for multiplication.
 * @return The product of all numbers in the list that are less than the threshold.
 *
 * Example:
 * multiplyLessThan(listOf(1, 2, 3, 4, 5), 3) // 2
 * multiplyLessThan(listOf(10, 20, 30, 40, 50), 25) // 20
 */
fun multiplyLessThan(numbersList: List<Int>, threshold: Int): Int {
/**
 * This exercise requires the firefighter to find the product of all numbers in a given list that are less than a given threshold.
 *
 * @param numbersList A list of numbers.
 * @param threshold A number that represents the maximum value for multiplication.
 * @return The product of all numbers in the list that are less than the threshold.
 *
 * Example:
 * multiplyLessThan(listOf(1, 2, 3, 4, 5), 3) // 2
 * multiplyLessThan(listOf(10, 20, 30, 40, 50), 25) // 20
 */
fun multiplyLessThan(numbersList: List<Int>, threshold: Int): Int {

    var product = 1

    for (number in numbersList) {
        if (number < threshold) {
            product *= number
        }
    }

    return product
}