After a year of workforce reductions and restructuring, Microsoft is preparing to expand its employee base once again — but with a renewed focus on efficiency through artificial intelligence.