Students worried about AI’s effect on jobs are reconsidering computer science and turning to AI, cybersecurity and other fields.