The ex-Netflix CMO's new book chronicles how she endured tragedy on the way to the top.