ZenTrades Interview Question

Machine coding on React (Recursive problem statement)