A king had a pet dog, which was a German Shepherd.
One day, the dog bit the king on the leg.
The king got mad at his dog, and he wanted the dog to be killed, but not by himself.
So he announced that anyone who kills the dog will get 1000 gold coins.
But on the condition that whatever way you kill the dog, the king will do the same thing to you.
How can you kill the dog and keep yourself alive?