Which figure of speech is an example of paradox?

A. As Hamlet said, "I must be cruel, only to be kind."

B. Writing with a broken pencil is pointless.

C. Yesterday's English test was a piece of cake.

D. I have a mountain of homework to do tonight.

A. As Hamlet said, "I must be cruel, only to be kind."