The riddle above is a puzzle to test one's ability to be very logical.
The answer to the riddle was provided by a Logician and Philosopher named G. Boolos.
See the attached image for the full riddle and the link below for more about the other Logic Puzzles Ever:
https://brainly.com/question/3752381