Answer:
H. Personification.
Step-by-step explanation:
Personification is one of the literary tools that a writer uses to make the text more interesting and enticing. This metaphorical device gives human attributes to non-human entities.
In the given sentence, the "flames" are personified. By describing how the flames "pushed against the roof and beams, almost as if they were struggling to break free" makes them seem living, alive. The act pf pushing and struggling is an act that a living thing, being can do. And in giving that attribute to the flames, the speaker/ author personifies the flames.
Thus, the correct answer is option H.