/**
 * This function takes the width and length of a wooden plank, and a target measurement,
 * and determines whether the target measurement falls within the plank or not.
 *
 * @param width The width of the wooden plank.
 * @param length The length of the wooden plank.
 * @param target The target measurement to check.
 * @return True if the target measurement falls within the plank, False otherwise.
 */
fun measureCut(width: Int, length: Int, target: Int): Boolean {

    // TODO: Implement the code to check if the target measurement falls within the given plank
    if (target < 0 || width < 0 || length < 0) {
        return false
    }
    if (target !in customRange(0, width) || target !in customRange(0, length)) {
        return false
    }
    return true
}

fun customRange(start: Int, end: Int): IntRange {
    return start until end
}
/**
 * This function takes the width and length of a wooden plank, and a target measurement,
 * and determines whether the target measurement falls within the plank or not.
 *
 * @param width The width of the wooden plank.
 * @param length The length of the wooden plank.
 * @param target The target measurement to check.
 * @return True if the target measurement falls within the plank, False otherwise.
 */
fun measureCut(width: Int, length: Int, target: Int): Boolean {
/**
 * This function takes the width and length of a wooden plank, and a target measurement,
 * and determines whether the target measurement falls within the plank or not.
 *
 * @param width The width of the wooden plank.
 * @param length The length of the wooden plank.
 * @param target The target measurement to check.
 * @return True if the target measurement falls within the plank, False otherwise.
 */
fun measureCut(width: Int, length: Int, target: Int): Boolean {

    // TODO: Implement the code to check if the target measurement falls within the given plank
    if (target < 0 || width < 0 || length < 0) {
        return false
    }
    if (target !in customRange(0, width) || target !in customRange(0, length)) {
        return false
    }
    return true
}

fun customRange(start: Int, end: Int): IntRange {
    return start until end
}