EPAM Systems interview question

How indexes works in PostgreSQL