Booz Allen Hamilton interview question

Describe how a SLAM algorithm works?