/**
 * This function takes a list of animals and filters out all non-mammals.
 * It uses nested loops and break statements to achieve this.
 *
 * @param mammals A list of animals.
 * @return A new list containing only mammal animals.
 */
fun filterMammals(mammals: List<String>): List<String> {

    val mammalList = mutableListOf<String>()

    for (animal in mammals) {
        for (letter in animal) {
            if (letter.toLowerCase() in listOf('m', 'a', 'm', 'm', 'a', 'l')) {
                mammalList.add(animal)
                break
            }
        }
    }

    return mammalList
}
/**
 * This function takes a list of animals and filters out all non-mammals.
 * It uses nested loops and break statements to achieve this.
 *
 * @param mammals A list of animals.
 * @return A new list containing only mammal animals.
 */
fun filterMammals(mammals: List<String>): List<String> {
/**
 * This function takes a list of animals and filters out all non-mammals.
 * It uses nested loops and break statements to achieve this.
 *
 * @param mammals A list of animals.
 * @return A new list containing only mammal animals.
 */
fun filterMammals(mammals: List<String>): List<String> {

    val mammalList = mutableListOf<String>()

    for (animal in mammals) {
        for (letter in animal) {
            if (letter.toLowerCase() in listOf('m', 'a', 'm', 'm', 'a', 'l')) {
                mammalList.add(animal)
                break
            }
        }
    }

    return mammalList
}