Answer to Question 22B-3

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