Cisco interview question

The way DHCP worked, some code review about pointer arithmetics and an algorithmic problem