This article was published in Scientific American’s former blog network and reflects the views of the author, not necessarily those of Scientific American I was one of those kids who always had a book ...
We will first solve Shape 1 and Shape 2 to understand the logic.