By never distributing the result outside the company, and not caring about intermixing proprietary code with it? The GPL, like most other FOSS licenses, only applies to distribution; no distribution, no license compliance issues.
A comment elsewhere in the thread suggests that they put their own proprietary license header at the top. Which is legal if they never distribute the result.
distribute it to whom? it was certainly distributed to the machines that are rented by a company which only assets is the fact it's close to the trading servers.
That is (generally) not how it works. HFTs rent rack space in which to insert machines that they themselves build, own, and maintain. The code never leaves the network/property of the company in usual circumstances.
In the book, Sergey says they simply rip the FOSS license off the header and replace it with a Goldman proprietary license. It's implied that the legality of this is a grey area.
Ripping software licenses of from software is extremely unlikely to be a grey area. The license is what gives a person permission, and if they remove it, so goes the permission. I would compare it to a person boarding a train, and then imminently throwing away the ticket.