Answer to Question 22B-9

It deletes the array before returning it. So it returns a dangling pointer.