Answer to Question 21B-8

It uses index n in array p, which does not exist.