/**
 * Appends two numbers to a list if they are both greater than zero.
 *
 * @param lst The original list.
 * @param num1 The first number to append.
 * @param num2 The second number to append.
 * @return The updated list after appending the numbers.
 * @throws IllegalArgumentException If any of the numbers is less than or equal to zero.
 */
fun appendToList(lst: MutableList<Int>, num1: Int, num2: Int): List<Int> {

    if (num1 <= 0 || num2 <= 0) {
        throw IllegalArgumentException("Numbers must be greater than zero")
    }

    lst.add(num1)

    lst.add(num2)

    return lst
}
/**
 * Appends two numbers to a list if they are both greater than zero.
 *
 * @param lst The original list.
 * @param num1 The first number to append.
 * @param num2 The second number to append.
 * @return The updated list after appending the numbers.
 * @throws IllegalArgumentException If any of the numbers is less than or equal to zero.
 */
fun appendToList(lst: MutableList<Int>, num1: Int, num2: Int): List<Int> {
/**
 * Appends two numbers to a list if they are both greater than zero.
 *
 * @param lst The original list.
 * @param num1 The first number to append.
 * @param num2 The second number to append.
 * @return The updated list after appending the numbers.
 * @throws IllegalArgumentException If any of the numbers is less than or equal to zero.
 */
fun appendToList(lst: MutableList<Int>, num1: Int, num2: Int): List<Int> {

    if (num1 <= 0 || num2 <= 0) {
        throw IllegalArgumentException("Numbers must be greater than zero")
    }

    lst.add(num1)

    lst.add(num2)

    return lst
}