/**
 * You are an archaeologist exploring a hidden tomb. You have come across a secret door guarded by a series of traps.
 * To open the door, you must correctly complete the code snippet below using the break statement and create a tuple using parentheses.
 * Your task is to insert the missing code that satisfies the conditions mentioned in the comments.
 *
 * Hint: You need to complete the code to access the treasure chamber by inputting the correct value inside the tuple.
 *
 * Complete the code below:
 */
fun breakAndTuple(): Pair<String, String> {

    // Create an empty tuple
    var treasureChamber: Pair<String, String> = Pair("", "")

    val treasures = listOf("Sapphire", "Emerald", "Ruby", "Diamond")

    // Iterate over the treasures list
    for (treasure in treasures) {
        // Hint: Use a conditional statement to break the loop when a certain treasure is found (e.g., "Ruby").
        if (treasure == "Ruby") {
            // Complete the code below to add the found treasure to the tuple
            treasureChamber = Pair("Found", treasure)
            // Use a break statement here to exit the loop when you find the treasure
            break
        }
    }

    // Return the tuple containing the found treasure
    return treasureChamber
}
/**
 * You are an archaeologist exploring a hidden tomb. You have come across a secret door guarded by a series of traps.
 * To open the door, you must correctly complete the code snippet below using the break statement and create a tuple using parentheses.
 * Your task is to insert the missing code that satisfies the conditions mentioned in the comments.
 *
 * Hint: You need to complete the code to access the treasure chamber by inputting the correct value inside the tuple.
 *
 * Complete the code below:
 */
fun breakAndTuple(): Pair<String, String> {
/**
 * You are an archaeologist exploring a hidden tomb. You have come across a secret door guarded by a series of traps.
 * To open the door, you must correctly complete the code snippet below using the break statement and create a tuple using parentheses.
 * Your task is to insert the missing code that satisfies the conditions mentioned in the comments.
 *
 * Hint: You need to complete the code to access the treasure chamber by inputting the correct value inside the tuple.
 *
 * Complete the code below:
 */
fun breakAndTuple(): Pair<String, String> {

    // Create an empty tuple
    var treasureChamber: Pair<String, String> = Pair("", "")

    val treasures = listOf("Sapphire", "Emerald", "Ruby", "Diamond")

    // Iterate over the treasures list
    for (treasure in treasures) {
        // Hint: Use a conditional statement to break the loop when a certain treasure is found (e.g., "Ruby").
        if (treasure == "Ruby") {
            // Complete the code below to add the found treasure to the tuple
            treasureChamber = Pair("Found", treasure)
            // Use a break statement here to exit the loop when you find the treasure
            break
        }
    }

    // Return the tuple containing the found treasure
    return treasureChamber
}