Revolut interview question

How would you implement indexes for databases?