/**
 * The task is to find the common positive integers between two given lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common positive integers between two given lists.
 */
fun findPositiveCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Int>()

    // Iterate over the elements of list1
    for (num in list1) {
        // Check if the number is positive and present in list2
        if (num > 0 && num in list2) {
            // Add the number to the commonElements list
            commonElements.add(num)
        }
    }

    // Return the list of common positive elements
    return commonElements
}
/**
 * The task is to find the common positive integers between two given lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common positive integers between two given lists.
 */
fun findPositiveCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * The task is to find the common positive integers between two given lists.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common positive integers between two given lists.
 */
fun findPositiveCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Int>()

    // Iterate over the elements of list1
    for (num in list1) {
        // Check if the number is positive and present in list2
        if (num > 0 && num in list2) {
            // Add the number to the commonElements list
            commonElements.add(num)
        }
    }

    // Return the list of common positive elements
    return commonElements
}