ask not what your country can do for you literary device
Chiasmus
chiasmus, or less commonly chiasm, (Latin term from Greek χίασμα, "crossing", from the Greek χιάζω, chiázō, "to shape like the letter Χ")