/**
 * The purpose of this function is to determine whether the given collection of bones contains any
 * powdered bones. A powdered bone is represented by a dictionary entry where the value is true.
 *
 * @param bones A map representing the bones collection where the key is the bone name and
 * the value is a boolean indicating whether the bone is powdered.
 * @return true if the collection contains any powdered bones, false otherwise.
 */
fun findPowderedBones(bones: Map<String, Boolean>): Boolean {

    // Loop through the map
    for ((_, powdered) in bones) {
        // Check if the bone is powdered
        if (powdered) {
            // Return true if powdered bone found
            return true
        }
    }
    // Return false if no powdered bone found
    return false
}
/**
 * The purpose of this function is to determine whether the given collection of bones contains any
 * powdered bones. A powdered bone is represented by a dictionary entry where the value is true.
 *
 * @param bones A map representing the bones collection where the key is the bone name and
 * the value is a boolean indicating whether the bone is powdered.
 * @return true if the collection contains any powdered bones, false otherwise.
 */
fun findPowderedBones(bones: Map<String, Boolean>): Boolean {
/**
 * The purpose of this function is to determine whether the given collection of bones contains any
 * powdered bones. A powdered bone is represented by a dictionary entry where the value is true.
 *
 * @param bones A map representing the bones collection where the key is the bone name and
 * the value is a boolean indicating whether the bone is powdered.
 * @return true if the collection contains any powdered bones, false otherwise.
 */
fun findPowderedBones(bones: Map<String, Boolean>): Boolean {

    // Loop through the map
    for ((_, powdered) in bones) {
        // Check if the bone is powdered
        if (powdered) {
            // Return true if powdered bone found
            return true
        }
    }
    // Return false if no powdered bone found
    return false
}