Elon Musk, the world's richest man, bought Twitter in October 2022 and renamed it to X before firing about 80% of the company's workforce.