Eva Xie did it right. She went to the highly competitive Bronx High School of Science in New York City and then MIT, where she studied math and computer science with a specialization in artificial intelligence. After her first year, she landed a coveted summer internship at Facebook and was invited back to Menlo Park the next summer—traditionally a good sign that a student would later be offered a full-time job.