GPS Insight Interview Question

how do imu and GPS work?