Answer to Question 23B-10

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