Concept Flow - Recursion on Arrays and Strings
Start with full array/string
Check base case: size == 0 or 1?
Yes→Return base result
No
Process current element or substring
Call recursion on smaller array/string
Combine current result with recursive call result
Return combined result
Recursion breaks the array or string into smaller parts, processes one part, then calls itself on the smaller part until it reaches the base case.
