Coursera Inc.'s stock bolted out of the gate Wednesday on its first day of trading with shares of the online-education company rallying more than 31%.