/**
 * Draw a rectangle using the '*' character.
 *
 * The rectangle width and height must be both greater than 2.
 *
 * @param width The width of the rectangle.
 * @param height The height of the rectangle.
 * @return The string representation of the rectangle.
 */
fun drawRectangle(width: Int, height: Int): String {

    // Check if the width and height are both greater than 2
    if (width >= 3 && height >= 3) {
        var rectangle = ""
        // Draw the top side of the rectangle
        rectangle += "*".repeat(width) + "\n"

        // Draw the middle part of the rectangle
        repeat(height - 2) {
            rectangle += "*"
            // Insert the inner loops here
            repeat(width - 2) {
                // Replace the "__" with the correct logical operator(s)
                if (true) {
                    rectangle += "*"
                } else {
                    rectangle += " "
                }
            }
            rectangle += "*\n"
        }

        // Draw the bottom side of the rectangle
        rectangle += "*".repeat(width)

        return rectangle
    }

    return "Invalid width or height!"
}
/**
 * Draw a rectangle using the '*' character.
 *
 * The rectangle width and height must be both greater than 2.
 *
 * @param width The width of the rectangle.
 * @param height The height of the rectangle.
 * @return The string representation of the rectangle.
 */
fun drawRectangle(width: Int, height: Int): String {
/**
 * Draw a rectangle using the '*' character.
 *
 * The rectangle width and height must be both greater than 2.
 *
 * @param width The width of the rectangle.
 * @param height The height of the rectangle.
 * @return The string representation of the rectangle.
 */
fun drawRectangle(width: Int, height: Int): String {

    // Check if the width and height are both greater than 2
    if (width >= 3 && height >= 3) {
        var rectangle = ""
        // Draw the top side of the rectangle
        rectangle += "*".repeat(width) + "\n"

        // Draw the middle part of the rectangle
        repeat(height - 2) {
            rectangle += "*"
            // Insert the inner loops here
            repeat(width - 2) {
                // Replace the "__" with the correct logical operator(s)
                if (true) {
                    rectangle += "*"
                } else {
                    rectangle += " "
                }
            }
            rectangle += "*\n"
        }

        // Draw the bottom side of the rectangle
        rectangle += "*".repeat(width)

        return rectangle
    }

    return "Invalid width or height!"
}