The story of one of the summer’s most-anticipated novels begins with a trip to Ghana’s Cape Coast Castle—a symbol in stone of slavery