Answer :
The correct answer is A. magical realism.
B is not correct because Mary Shelley's Frankenstein (1818) is considered to have paved the way for the development of science fiction. C is incorrect because epic poetry existed back in ancient Greek and Roman times, much before Kafka was even born. D is incorrect because this novel is not nonfiction - quite the opposite, it is fiction.
Therefore, the correct answer is A. magical realism. While there are many magical elements in the story (such as a man turning into a bug), overall the novella (1915) is rather realistic.