/**
 * This function takes two lists of positive integers and returns a new list containing the common positive integers
 * between the two input lists.
 *
 * @param list1 A list of positive integers
 * @param list2 A list of positive integers
 * @return A new list containing the common positive integers
 *
 * Example:
 * findCommonPositiveIntegers(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 */
fun findCommonPositiveIntegers(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonIntegers = mutableListOf<Int>()

    for (num1 in list1) {
        for (num2 in list2) {
            if (num1 == num2 && num1 > 0) {
                commonIntegers.add(num1)
            }
        }
    }

    return commonIntegers
}
/**
 * This function takes two lists of positive integers and returns a new list containing the common positive integers
 * between the two input lists.
 *
 * @param list1 A list of positive integers
 * @param list2 A list of positive integers
 * @return A new list containing the common positive integers
 *
 * Example:
 * findCommonPositiveIntegers(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 */
fun findCommonPositiveIntegers(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists of positive integers and returns a new list containing the common positive integers
 * between the two input lists.
 *
 * @param list1 A list of positive integers
 * @param list2 A list of positive integers
 * @return A new list containing the common positive integers
 *
 * Example:
 * findCommonPositiveIntegers(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // [3, 4]
 */
fun findCommonPositiveIntegers(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonIntegers = mutableListOf<Int>()

    for (num1 in list1) {
        for (num2 in list2) {
            if (num1 == num2 && num1 > 0) {
                commonIntegers.add(num1)
            }
        }
    }

    return commonIntegers
}