Given a string consisting of only lowercase characters, create two methods that remove all the consonants or vowels from the given word.
They must retain the original order of the characters in the returned strings.
For example, if we give input as "programming". The output will be as below.
prgrmmng
oai