GPS Insight interview question

how do imu and GPS work?