Cisco interview question

How ping works? Problems using Simple Data Structures and Algorithms