Final answer:
Hera punished Echo by making her only able to repeat the last words spoken by another, as a result of Echo's part in deceiving her.
Step-by-step explanation:
When Hera found out about the lie, she cursed Echo, a mountain nymph, by taking away her voice except to repeat the last words said by another person.
This was a punishment for Echo's deception, which had been to distract Hera with long conversations while Zeus, Hera's husband, engaged in affairs with other nymphs.
Echo's story is a part of Greek mythology and sheds light on the consequences of deception and the wrath of the gods, particularly Hera who was known for her jealously protective nature regarding her marriage.