UBS interview question

Then was given a easy DSA problem on recursion.

Interview Answer

Anonymous

30 July 2024

Solved it using recursion and added base cases for <0, 0, 1.