A Stanford economist says AI may be reshaping students' choices as computer science enrollment slows.