/**
 * This function takes a string and finds all the characters present in the string using a loop and
 * the AND operator. It returns a list of characters found.
 */
fun findCharacters(string: String, characters: List<Char>): List<Char> {

    val foundChars = mutableListOf<Char>()

    // Loop through each character in the given string
    for (char in string) {
        // Check if the character exists in the characters list
        if (char in characters) {
            // Add the character to the foundChars list
            foundChars.add(char)
        }
    }

    return foundChars
}
/**
 * This function takes a string and finds all the characters present in the string using a loop and
 * the AND operator. It returns a list of characters found.
 */
fun findCharacters(string: String, characters: List<Char>): List<Char> {
/**
 * This function takes a string and finds all the characters present in the string using a loop and
 * the AND operator. It returns a list of characters found.
 */
fun findCharacters(string: String, characters: List<Char>): List<Char> {

    val foundChars = mutableListOf<Char>()

    // Loop through each character in the given string
    for (char in string) {
        // Check if the character exists in the characters list
        if (char in characters) {
            // Add the character to the foundChars list
            foundChars.add(char)
        }
    }

    return foundChars
}