Wipro interview question

How does global positioning system work