Palo Alto Networks interview question

I got one recursion question, one about array search and one optional python question