The word "wrack" means to cause distress or torment. In this context, it means to think very hard and intensely, often to the point of being distressed.
The word "wrack" means to cause distress or torment. In this context, it means to think very hard and intensely, often to the point of being distressed.