
    Write a function that processes a customer's financial goal statement by rearranging only the vowels in the text while keeping all other characters in their original positions, to create standardized documentation for the bank's internal system. The function should maintain the statement's readability and core meaning while following the bank's text normalization protocol where 'y' is treated as a consonant.
    

    
def reverse_vowels(str1):
    """
    Write a function that processes a customer's financial goal statement by rearranging only the vowels in the text while keeping all other characters in their original positions, to create standardized documentation for the bank's internal system. The function should maintain the statement's readability and core meaning while following the bank's text normalization protocol where 'y' is treated as a consonant.
    

    """
def reverse_vowels(str1):
    """
    Write a function that processes a customer's financial goal statement by rearranging only the vowels in the text while keeping all other characters in their original positions, to create standardized documentation for the bank's internal system. The function should maintain the statement's readability and core meaning while following the bank's text normalization protocol where 'y' is treated as a consonant.
    

    """
    vowels = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            vowels += char
    result_string = ''
    for char in str1:
        if char in 'aeiouAEIOU':
            result_string += vowels[-1]
            vowels = vowels[:-1]
        else:
            result_string += char
    return result_string