Palo Alto Networks Interview Question

was asked to code in C