/**
 * A carpenter needs to calculate the total wood required for creating a list of objects.
 * The lengths, widths, and depths of each object are given as separate lists.
 * You need to find the total volume of wood required and return it.
 *
 * The formula for calculating the volume of a rectangular object is:
 * Volume = length * width * depth
 *
 * @param lengths A list of the lengths of each object.
 * @param widths A list of the widths of each object.
 * @param depths A list of the depths of each object.
 * @return The total volume of wood required.
 *
 * Example:
 * lengths = [2, 4, 6]
 * widths = [3, 5, 7]
 * depths = [1, 2, 3]
 * calculateWoodRequired(lengths, widths, depths) -> 100
 */
fun calculateWoodRequired(lengths: List<Int>, widths: List<Int>, depths: List<Int>): Int {

    var totalVolume = 0

    for (i in lengths.indices) {
        totalVolume += lengths[i] * widths[i] * depths[i]
    }

    return totalVolume
}
/**
 * A carpenter needs to calculate the total wood required for creating a list of objects.
 * The lengths, widths, and depths of each object are given as separate lists.
 * You need to find the total volume of wood required and return it.
 *
 * The formula for calculating the volume of a rectangular object is:
 * Volume = length * width * depth
 *
 * @param lengths A list of the lengths of each object.
 * @param widths A list of the widths of each object.
 * @param depths A list of the depths of each object.
 * @return The total volume of wood required.
 *
 * Example:
 * lengths = [2, 4, 6]
 * widths = [3, 5, 7]
 * depths = [1, 2, 3]
 * calculateWoodRequired(lengths, widths, depths) -> 100
 */
fun calculateWoodRequired(lengths: List<Int>, widths: List<Int>, depths: List<Int>): Int {
/**
 * A carpenter needs to calculate the total wood required for creating a list of objects.
 * The lengths, widths, and depths of each object are given as separate lists.
 * You need to find the total volume of wood required and return it.
 *
 * The formula for calculating the volume of a rectangular object is:
 * Volume = length * width * depth
 *
 * @param lengths A list of the lengths of each object.
 * @param widths A list of the widths of each object.
 * @param depths A list of the depths of each object.
 * @return The total volume of wood required.
 *
 * Example:
 * lengths = [2, 4, 6]
 * widths = [3, 5, 7]
 * depths = [1, 2, 3]
 * calculateWoodRequired(lengths, widths, depths) -> 100
 */
fun calculateWoodRequired(lengths: List<Int>, widths: List<Int>, depths: List<Int>): Int {

    var totalVolume = 0

    for (i in lengths.indices) {
        totalVolume += lengths[i] * widths[i] * depths[i]
    }

    return totalVolume
}