Groupon interview question

Recursive search problem given JSON input