String With Most Vowels

Two Strings S1 and S2 are given as input. The program must print the string with the most number of vowels. If two strings have the same number of vowels, print the string with greater length.

Boundary Condition(s):
1 <= length of strings <= 1000

Input Format:
The first line S1 and S2 separated by space(s).

Output Format:
The first line contains a string.

Example Input/Output 1:
Input:
adder divider

Output:
divider

Example Input/Output 2:
Input:
important welcome

Output:
important

String

Previous Article

Isolate Interlaced Strings

Next Article

JAVA - Static Members - Department Count

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *