LinkedIn interview question

REST API calling using recursion