Nagarro Interview Question

DSA and a Coding question on recursion