Palo Alto Networks interview question

was asked to code in C