I understand the the song (most notably by Steeleye Span) is about a boy and the devil. The boy must answer a series of riddles to avoid hell.
I cant seem to figure out how the answers to these riddles make any sense. Love the song though.
Here are the lyrics for convenience