Microsoft announced Monday that it has hired Sam Altman and another co-founder of ChatGPT maker OpenAI after they unexpectedly departed the company days earlier in a corporate shakeup that shocked the artificial intelligence world.