/**
 * This exercise requires the carpenter to create a range of cut lengths based on the specified maximum length.
 * The carpenter should then use a loop to iterate through each cut length and check if it meets a specified condition.
 * If the condition is not met, the carpenter should use the 'continue' statement to skip to the next iteration.
 *
 * @param maxLength Maximum length for the range of cut lengths.
 * @param cutLengths List of cut lengths to be checked against the condition.
 * @return List of cut lengths that meet the specified condition.
 */
fun calculateCuts(maxLength: Int, cutLengths: List<Int>): List<Int> {

    val validCuts = mutableListOf<Int>()
    for (length in 1..maxLength) {
        if (length % 2 == 0) {
            continue
        } else {
            validCuts.add(length)
        }
    }
    return validCuts
}
/**
 * This exercise requires the carpenter to create a range of cut lengths based on the specified maximum length.
 * The carpenter should then use a loop to iterate through each cut length and check if it meets a specified condition.
 * If the condition is not met, the carpenter should use the 'continue' statement to skip to the next iteration.
 *
 * @param maxLength Maximum length for the range of cut lengths.
 * @param cutLengths List of cut lengths to be checked against the condition.
 * @return List of cut lengths that meet the specified condition.
 */
fun calculateCuts(maxLength: Int, cutLengths: List<Int>): List<Int> {
/**
 * This exercise requires the carpenter to create a range of cut lengths based on the specified maximum length.
 * The carpenter should then use a loop to iterate through each cut length and check if it meets a specified condition.
 * If the condition is not met, the carpenter should use the 'continue' statement to skip to the next iteration.
 *
 * @param maxLength Maximum length for the range of cut lengths.
 * @param cutLengths List of cut lengths to be checked against the condition.
 * @return List of cut lengths that meet the specified condition.
 */
fun calculateCuts(maxLength: Int, cutLengths: List<Int>): List<Int> {

    val validCuts = mutableListOf<Int>()
    for (length in 1..maxLength) {
        if (length % 2 == 0) {
            continue
        } else {
            validCuts.add(length)
        }
    }
    return validCuts
}