Mango Health interview question

Questions around recursion and Big )