Concept Flow - Recursion on Arrays and Strings
Start with full array/string
Check base case: empty or size 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 rest until a simple base case is reached.
