Answer to Question 22B-10

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