/**
 * This function finds the intersection of positive integers with a range that includes negative values.
 *
 * @param start starting value of the range
 * @param end ending value of the range
 * @return a list of positive integers that are present in the specified range
 *
 * Example:
 * intersectionPositiveIntegersWithNegativeRange(-5, 5)
 * Output: [1, 2, 3, 4, 5]
 */
fun intersectionPositiveIntegersWithNegativeRange(start: Int, end: Int): List<Int> {

    val positiveIntegers = (maxOf(1, start)..end).filter { it > 0 }
    return positiveIntegers
}
/**
 * This function finds the intersection of positive integers with a range that includes negative values.
 *
 * @param start starting value of the range
 * @param end ending value of the range
 * @return a list of positive integers that are present in the specified range
 *
 * Example:
 * intersectionPositiveIntegersWithNegativeRange(-5, 5)
 * Output: [1, 2, 3, 4, 5]
 */
fun intersectionPositiveIntegersWithNegativeRange(start: Int, end: Int): List<Int> {
/**
 * This function finds the intersection of positive integers with a range that includes negative values.
 *
 * @param start starting value of the range
 * @param end ending value of the range
 * @return a list of positive integers that are present in the specified range
 *
 * Example:
 * intersectionPositiveIntegersWithNegativeRange(-5, 5)
 * Output: [1, 2, 3, 4, 5]
 */
fun intersectionPositiveIntegersWithNegativeRange(start: Int, end: Int): List<Int> {

    val positiveIntegers = (maxOf(1, start)..end).filter { it > 0 }
    return positiveIntegers
}