Muse Group interview question

How does index working in databases