Question
How did he punish her?
Solution
He punished the lady by changing her into a woodpecker that built “as birds do” and gathered scanty food by boring in the “hard, dry wood” all day long.