/**
 * Create a dictionary containing the numbers from the given list as keys and their frequency as values.
 * Only include the numbers that are less than the threshold number.
 *
 * @param numbers List of numbers.
 * @param threshold The maximum value a number can have to be included in the dictionary.
 * @return A dictionary with numbers less than the threshold and their frequencies.
 */
fun createDictLessThan(numbers: List<Int>, threshold: Int): Map<Int, Int> {

    val result = mutableMapOf<Int, Int>()
    for (num in numbers) {
        if (num < threshold) {
            result[num] = result.getOrDefault(num, 0) + 1
        }
    }
    return result
}
/**
 * Create a dictionary containing the numbers from the given list as keys and their frequency as values.
 * Only include the numbers that are less than the threshold number.
 *
 * @param numbers List of numbers.
 * @param threshold The maximum value a number can have to be included in the dictionary.
 * @return A dictionary with numbers less than the threshold and their frequencies.
 */
fun createDictLessThan(numbers: List<Int>, threshold: Int): Map<Int, Int> {
/**
 * Create a dictionary containing the numbers from the given list as keys and their frequency as values.
 * Only include the numbers that are less than the threshold number.
 *
 * @param numbers List of numbers.
 * @param threshold The maximum value a number can have to be included in the dictionary.
 * @return A dictionary with numbers less than the threshold and their frequencies.
 */
fun createDictLessThan(numbers: List<Int>, threshold: Int): Map<Int, Int> {

    val result = mutableMapOf<Int, Int>()
    for (num in numbers) {
        if (num < threshold) {
            result[num] = result.getOrDefault(num, 0) + 1
        }
    }
    return result
}