/**
 * You are given a list of lawyer notes, where each note is represented as a string.
 * However, due to some confidential information that cannot be shared with others,
 * certain characters in each note need to be masked by an asterisk '*'.
 * Your task is to modify the lawyer notes list by masking certain characters.
 *
 * @param lawyerNotes A list of lawyer notes.
 * @return The modified lawyer notes list with masked characters.
 */
fun modifyListElements(lawyerNotes: List<String>): List<String> {

    val modifiedNotes = mutableListOf<String>()

    // Iterate over the lawyer notes
    for (note in lawyerNotes) {
        // Initialize an empty modified note string
        var modifiedNote = ""

        // Iterate over each character in the note
        for (char in note) {
            // Check if the character needs to be masked
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                // Mask the character with an asterisk
                modifiedNote += '*'
            } else {
                modifiedNote += char
            }
        }

        // Append the modified note to the modifiedNotes list
        modifiedNotes.add(modifiedNote)
    }

    return modifiedNotes
}
/**
 * You are given a list of lawyer notes, where each note is represented as a string.
 * However, due to some confidential information that cannot be shared with others,
 * certain characters in each note need to be masked by an asterisk '*'.
 * Your task is to modify the lawyer notes list by masking certain characters.
 *
 * @param lawyerNotes A list of lawyer notes.
 * @return The modified lawyer notes list with masked characters.
 */
fun modifyListElements(lawyerNotes: List<String>): List<String> {
/**
 * You are given a list of lawyer notes, where each note is represented as a string.
 * However, due to some confidential information that cannot be shared with others,
 * certain characters in each note need to be masked by an asterisk '*'.
 * Your task is to modify the lawyer notes list by masking certain characters.
 *
 * @param lawyerNotes A list of lawyer notes.
 * @return The modified lawyer notes list with masked characters.
 */
fun modifyListElements(lawyerNotes: List<String>): List<String> {

    val modifiedNotes = mutableListOf<String>()

    // Iterate over the lawyer notes
    for (note in lawyerNotes) {
        // Initialize an empty modified note string
        var modifiedNote = ""

        // Iterate over each character in the note
        for (char in note) {
            // Check if the character needs to be masked
            if (char.toLowerCase() in listOf('a', 'e', 'i', 'o', 'u')) {
                // Mask the character with an asterisk
                modifiedNote += '*'
            } else {
                modifiedNote += char
            }
        }

        // Append the modified note to the modifiedNotes list
        modifiedNotes.add(modifiedNote)
    }

    return modifiedNotes
}