Which type of twist ending would include a character who readers believe is surviving in the wilderness of the jungle, only to learn at the end that the character is just having a dream?

A reversal of fortune
B reversal of identity
C reversal of motive
D reversal of perception