How the London Stock Exchange-listed firm turned an extraordinary challenge into a massive opportunity.