/**
 * This function calculates the total stock of a fashion designer's items.
 * It takes in three arguments - fabricStock, apparelStock, and accessoriesStock.
 * Each stock is a list containing positive integers representing the number of items in stock.
 *
 * The function returns the total stock count as an integer.
 *
 * The goal is to use the 'all" function to check if the stock count of each item is a positive integer,
 * and then sum up the counts of all items in stock.
 */
fun calculateStock(fabricStock: List<Int>, apparelStock: List<Int>, accessoriesStock: List<Int>): Int {

    var totalStock = 0

    // Check if fabricStock contains only positive integers
    if (fabricStock.all { it > 0 }) {
        totalStock += fabricStock.sum()
    }

    // Check if apparelStock contains only positive integers
    if (apparelStock.all { it > 0 }) {
        totalStock += apparelStock.sum()
    }

    // Check if accessoriesStock contains only positive integers
    if (accessoriesStock.all { it > 0 }) {
        totalStock += accessoriesStock.sum()
    }

    return totalStock
}
/**
 * This function calculates the total stock of a fashion designer's items.
 * It takes in three arguments - fabricStock, apparelStock, and accessoriesStock.
 * Each stock is a list containing positive integers representing the number of items in stock.
 *
 * The function returns the total stock count as an integer.
 *
 * The goal is to use the 'all" function to check if the stock count of each item is a positive integer,
 * and then sum up the counts of all items in stock.
 */
fun calculateStock(fabricStock: List<Int>, apparelStock: List<Int>, accessoriesStock: List<Int>): Int {
/**
 * This function calculates the total stock of a fashion designer's items.
 * It takes in three arguments - fabricStock, apparelStock, and accessoriesStock.
 * Each stock is a list containing positive integers representing the number of items in stock.
 *
 * The function returns the total stock count as an integer.
 *
 * The goal is to use the 'all" function to check if the stock count of each item is a positive integer,
 * and then sum up the counts of all items in stock.
 */
fun calculateStock(fabricStock: List<Int>, apparelStock: List<Int>, accessoriesStock: List<Int>): Int {

    var totalStock = 0

    // Check if fabricStock contains only positive integers
    if (fabricStock.all { it > 0 }) {
        totalStock += fabricStock.sum()
    }

    // Check if apparelStock contains only positive integers
    if (apparelStock.all { it > 0 }) {
        totalStock += apparelStock.sum()
    }

    // Check if accessoriesStock contains only positive integers
    if (accessoriesStock.all { it > 0 }) {
        totalStock += accessoriesStock.sum()
    }

    return totalStock
}