DataArt Interview Question

How do indexes in PostgreSQL actually work on a database level?