The riddle below dates back to the 19th century—can you figure it out?