/**
 * Given a dictionary, check if it contains the key 'exit' and the value of 'exit' is true.
 * If so, exit the while loop.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return 'Loop exited' if the dictionary contains the key 'exit' and the value is true,
 *         'Continue looping' otherwise.
 */
fun checkDictionary(dictionary: Map<String, Boolean>): String {

    while (true) {
        // Check if the key 'exit' exists in the dictionary
        if (dictionary.containsKey("exit")) {
            // Check if the value of 'exit' is true
            if (dictionary["exit"] == true) {
                return "Loop exited"
            }
        }
        // Continue to loop if the conditions are not met
        return "Continue looping" // TODO: Replace the statement with code to continue looping
    }
}
/**
 * Given a dictionary, check if it contains the key 'exit' and the value of 'exit' is true.
 * If so, exit the while loop.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return 'Loop exited' if the dictionary contains the key 'exit' and the value is true,
 *         'Continue looping' otherwise.
 */
fun checkDictionary(dictionary: Map<String, Boolean>): String {
/**
 * Given a dictionary, check if it contains the key 'exit' and the value of 'exit' is true.
 * If so, exit the while loop.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @return 'Loop exited' if the dictionary contains the key 'exit' and the value is true,
 *         'Continue looping' otherwise.
 */
fun checkDictionary(dictionary: Map<String, Boolean>): String {

    while (true) {
        // Check if the key 'exit' exists in the dictionary
        if (dictionary.containsKey("exit")) {
            // Check if the value of 'exit' is true
            if (dictionary["exit"] == true) {
                return "Loop exited"
            }
        }
        // Continue to loop if the conditions are not met
        return "Continue looping" // TODO: Replace the statement with code to continue looping
    }
}