The Fed chair told Harvard students that young workers' best career move is learning to use AI, even as the technology disrupts the labor market.