Investing.com interview question

How does MySQL create indexes