Answer to Question 35-2
It goes around the loop n times. Each time, it needs to
compute strlen(s), which takes time proportional to n
(plus an amount of work that is bounded by a constant). So
the total time is Θ(n2).
(If you buy n things and each one costs n dollars,
your total bill is n*n.)
This is much worse than the preceding definition of numVowels.