Sisu Tech interview question

How do hash maps work and why the access time is constant?