Which description is an example of an allegory?

A) "The Lady or the Tiger" by Frank Stockton is a thought provoking story that asks a tough question: Would a woman rather see the man she loves with another woman or be murdered by a tiger?
B) The Westing Game, by Ellen Raskin, tells the story of 16 people who are heirs to a large inheritance, but they must discover their benefactor's killer in order to inherit the money.
C) O. Henry's "The ransom of Red Chief" recounts the story of two bandits who kidnaped a spoiled little boy for ransom but later pay his father to take him back.
D) William Golding's novel Lord of the Flies is a thrilling story about a group of boys surviving after a plane crash without the guidance of adults. It's also a tale about the struggle between civilization and savagery.

The answer is option D.
I am posting this because I had different options and I couldn't find an answer to it, so I got the answer by luck. Hope this helps.