Cisco Interview Question

How ping works? Problems using Simple Data Structures and Algorithms