/**
 * This function takes the desired oven temperature and the batter as inputs
 * and returns whether the souffle is ready or not.
 */
fun makeSouffle(ovenTemp: Int?, batter: String?): Boolean {

    // Initialize the flag variable to keep track of the souffle's readiness
    var souffleReady = false

    // Check if the oven temperature is not null and the batter is not null
    if (ovenTemp != null && batter != null) {
        // Create a while loop that runs until the souffle is ready
        while (!souffleReady) {
            // Check if the oven temperature is too high, if true set souffleReady to true
            if (ovenTemp > 200) {
                souffleReady = true

                // Print a message saying the oven temperature is too high
                println("Oops! The oven temperature is too high!")
            }

            // Check if the batter has been properly mixed, if true set souffleReady to true
            else if (batter.contains("mixed")) {
                souffleReady = true

                // Print a message saying the batter is properly mixed
                println("Great job! The batter is properly mixed.")
            }

            // Prompt the user to continue mixing the batter
            else {
                // Prompt the user to continue mixing the batter
                println("Please continue mixing the batter.")
            }
        }
    }

    return souffleReady
}
/**
 * This function takes the desired oven temperature and the batter as inputs
 * and returns whether the souffle is ready or not.
 */
fun makeSouffle(ovenTemp: Int?, batter: String?): Boolean {
/**
 * This function takes the desired oven temperature and the batter as inputs
 * and returns whether the souffle is ready or not.
 */
fun makeSouffle(ovenTemp: Int?, batter: String?): Boolean {

    // Initialize the flag variable to keep track of the souffle's readiness
    var souffleReady = false

    // Check if the oven temperature is not null and the batter is not null
    if (ovenTemp != null && batter != null) {
        // Create a while loop that runs until the souffle is ready
        while (!souffleReady) {
            // Check if the oven temperature is too high, if true set souffleReady to true
            if (ovenTemp > 200) {
                souffleReady = true

                // Print a message saying the oven temperature is too high
                println("Oops! The oven temperature is too high!")
            }

            // Check if the batter has been properly mixed, if true set souffleReady to true
            else if (batter.contains("mixed")) {
                souffleReady = true

                // Print a message saying the batter is properly mixed
                println("Great job! The batter is properly mixed.")
            }

            // Prompt the user to continue mixing the batter
            else {
                // Prompt the user to continue mixing the batter
                println("Please continue mixing the batter.")
            }
        }
    }

    return souffleReady
}