/**
 * Given a list of children, identify the vulnerable children and return their details.
 *
 * @param children A list of child dictionaries containing their information.
 * @return A list of vulnerable child dictionaries containing their details.
 */
fun determineVulnerableChildren(children: List<Map<String, Any>>): List<Map<String, Any>> {

    // Initialize an empty list to store vulnerable child details
    val vulnerableChildren = mutableListOf<Map<String, Any>>()

    // Iterate through each child in the list
    for (child in children) {
        // Check if the child has any identified vulnerabilities
        if (child["vulnerabilities"] != null) {
            // Append the details of vulnerable children to the vulnerableChildren list
            vulnerableChildren.add(child)
        }
    }

    return vulnerableChildren
}
/**
 * Given a list of children, identify the vulnerable children and return their details.
 *
 * @param children A list of child dictionaries containing their information.
 * @return A list of vulnerable child dictionaries containing their details.
 */
fun determineVulnerableChildren(children: List<Map<String, Any>>): List<Map<String, Any>> {
/**
 * Given a list of children, identify the vulnerable children and return their details.
 *
 * @param children A list of child dictionaries containing their information.
 * @return A list of vulnerable child dictionaries containing their details.
 */
fun determineVulnerableChildren(children: List<Map<String, Any>>): List<Map<String, Any>> {

    // Initialize an empty list to store vulnerable child details
    val vulnerableChildren = mutableListOf<Map<String, Any>>()

    // Iterate through each child in the list
    for (child in children) {
        // Check if the child has any identified vulnerabilities
        if (child["vulnerabilities"] != null) {
            // Append the details of vulnerable children to the vulnerableChildren list
            vulnerableChildren.add(child)
        }
    }

    return vulnerableChildren
}