Palo Alto Networks interview question

Data structure related question