Palo Alto Networks interview question

I wrote a Java Program on recursive list parsing.