You made a common error there, Chamath put in $20 for a 'majority' stake, which can be either 50.1% of the shares, or x% where X < 50.1 but represents the largest single block of shares (I've seen both types of stakes being called 'majority stakes')
Lets say it was 50.1% then the post money valuation of the company was $40M (not $20M) so in that scenario the growth in value was 50% (rather than 300%)
That said, since these things don't go into details, he may have lost money on the deal if the deal is structured more for retaining the talent than paying back the investors.
This is a good point, and also its worth another note (from the linked article):
Palihapitiya put $6 million into the company upfront, he said, and has committed $20 million over the next three years.
The article goes on to note that this was a personal investment, not an investment of his fund. So, all things considered, perhaps not so surprising that he chose to exit opportunistically.
Now it's being sold for $65 million. I'm wondering what made Xtreme Labs three times as valuable in a year? And why Chamath sold it so quickly?