With a string of successful startups and innovative companies, Elon Musk has risen to the rank of second-wealthiest man in the world. So how did he get there?