Companies are starting to replace entry-level jobs with artificial intelligence, depriving young workers of the skills they need to climb the career ladder.