Plum Interview Question

Recursion Question in round 1