#3856

Trim Trailing Vowels

easy · 77.1% accepted · 24 likes · top 88%

Description

You are given a string s that consists of lowercase English letters.

Return the string obtained by removing all trailing vowels from s.

The vowels consist of the characters 'a', 'e', 'i', 'o', and 'u'.

Solution