William Golding's Lord of the Flies does not feature a formal "punishment." Instead, the boys' descent into savagery brings self-inflicted consequences:
The island's destruction and the boys' psychological ruin serve as the novel's ultimate "punishment"—a consequence of their choices, not an external decree.
If you meant a different work or character, please clarify.