/**
 * Draws a rectangle using the '*' character with a given width and height.
 */
fun drawRectangle(width: Int, height: Int) {

    var row = 0

    while (row < height) {
        var column = 0

        while (column < width) {
            if (row == 0 || row == height - 1 || column == 0 || column == width - 1) {
                print("* ")
            } else {
                print("  ")
            }

            column++
        }

        row++
        println()
    }
}

// Add code below to print the rectangle with '*' characters and spaces using nested while loops
/**
 * Draws a rectangle using the '*' character with a given width and height.
 */
fun drawRectangle(width: Int, height: Int) {
/**
 * Draws a rectangle using the '*' character with a given width and height.
 */
fun drawRectangle(width: Int, height: Int) {

    var row = 0

    while (row < height) {
        var column = 0

        while (column < width) {
            if (row == 0 || row == height - 1 || column == 0 || column == width - 1) {
                print("* ")
            } else {
                print("  ")
            }

            column++
        }

        row++
        println()
    }
}

// Add code below to print the rectangle with '*' characters and spaces using nested while loops