Booz Allen Hamilton Interview Question

Describe how a SLAM algorithm works?