Answer to Question 32-3

Θ(n).