Concept Flow - Recursion on Arrays and Strings
Start with full array/string
Check base case: empty array/string?
Yes→Return base result
No
Process first element
Call recursion on rest of array/string
Combine first element with recursive result
Return combined result
Recursion breaks the array or string into smaller parts, processes one element, then calls itself on the rest until it reaches the base case.
