Given a vector of strings , return the index of element that has the maximum number of vowels.
I gave an brute force appraoch but he asked an optimal one i failed in doing it,
So if anyone knows then help in providing both brute(n^2) and optimal(n).
Note: No constraints were given, i cleared the online test, got the link from referral.
Please help in solving the ques.
Thank You