Answer to Question 20B-7

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