TikTok interview question

Solved a coding recursive question