Infosys interview question

Question on Recursion