Parkopedia interview question

What is the difference between SLAM and Structure From Motion?