/**
 * Given a list of enemies, return a list of active enemies.
 *
 * Each enemy is represented as a dictionary containing their 'name' and 'status'.
 * The 'status' can either be 'active' or 'inactive'.
 *
 * Use the NOT operator and loop through the list to find all active enemies.
 *
 * @param enemies list of dictionaries representing enemies
 * @return list of dictionaries representing active enemies
 */
fun findActiveEnemies(enemies: List<Map<String, String>>): List<Map<String, String>> {

    val activeEnemies = mutableListOf<Map<String, String>>()

    for (enemy in enemies) {
        if (enemy["status"] != "inactive") {
            activeEnemies.add(enemy)
        }
    }

    return activeEnemies
}
/**
 * Given a list of enemies, return a list of active enemies.
 *
 * Each enemy is represented as a dictionary containing their 'name' and 'status'.
 * The 'status' can either be 'active' or 'inactive'.
 *
 * Use the NOT operator and loop through the list to find all active enemies.
 *
 * @param enemies list of dictionaries representing enemies
 * @return list of dictionaries representing active enemies
 */
fun findActiveEnemies(enemies: List<Map<String, String>>): List<Map<String, String>> {
/**
 * Given a list of enemies, return a list of active enemies.
 *
 * Each enemy is represented as a dictionary containing their 'name' and 'status'.
 * The 'status' can either be 'active' or 'inactive'.
 *
 * Use the NOT operator and loop through the list to find all active enemies.
 *
 * @param enemies list of dictionaries representing enemies
 * @return list of dictionaries representing active enemies
 */
fun findActiveEnemies(enemies: List<Map<String, String>>): List<Map<String, String>> {

    val activeEnemies = mutableListOf<Map<String, String>>()

    for (enemy in enemies) {
        if (enemy["status"] != "inactive") {
            activeEnemies.add(enemy)
        }
    }

    return activeEnemies
}