/**
 * A carpenter is making frames for different sized wooden planks. The lengths, widths, and heights of the planks are given as input.
 * The carpenter wants to create a list of frames with initial dimensions, but the frames should only be created if the dimensions are appropriate.
 * If any of the given dimensions is zero or negative, the frame should NOT be created.
 * Complete the code to solve this exercise.
 */
fun makeFrame(lengths: List<Int>, widths: List<Int>, heights: List<Int>): List<Triple<Int, Int, Int>> {

    val frames = mutableListOf<Triple<Int, Int, Int>>()
    for (i in lengths.indices) {
        if (lengths[i] > 0 && widths[i] > 0 && heights[i] > 0) {
            frames.add(Triple(lengths[i], widths[i], heights[i]))
        }
    }
    return frames
}
/**
 * A carpenter is making frames for different sized wooden planks. The lengths, widths, and heights of the planks are given as input.
 * The carpenter wants to create a list of frames with initial dimensions, but the frames should only be created if the dimensions are appropriate.
 * If any of the given dimensions is zero or negative, the frame should NOT be created.
 * Complete the code to solve this exercise.
 */
fun makeFrame(lengths: List<Int>, widths: List<Int>, heights: List<Int>): List<Triple<Int, Int, Int>> {
/**
 * A carpenter is making frames for different sized wooden planks. The lengths, widths, and heights of the planks are given as input.
 * The carpenter wants to create a list of frames with initial dimensions, but the frames should only be created if the dimensions are appropriate.
 * If any of the given dimensions is zero or negative, the frame should NOT be created.
 * Complete the code to solve this exercise.
 */
fun makeFrame(lengths: List<Int>, widths: List<Int>, heights: List<Int>): List<Triple<Int, Int, Int>> {

    val frames = mutableListOf<Triple<Int, Int, Int>>()
    for (i in lengths.indices) {
        if (lengths[i] > 0 && widths[i] > 0 && heights[i] > 0) {
            frames.add(Triple(lengths[i], widths[i], heights[i]))
        }
    }
    return frames
}