Even as the celebrated Udacity CEO steps down, the pivoting of his company over the last few years offers lessons to skilling and re-skilling India’s youth.