The poetic form which is short, witty, and ends with a twist is B. an epigram. An elegy is a sad poem written in order to mourn someone or something. A masque is a type of a play. An epitaph is a short text written on someone's tombstone, usually. So, this leaves us with an epigram, which is a clever and funny poem, usually involving puns and sarcasm.