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 first element or last element
Call recursion on smaller array/string
Combine current element with recursive result
Return combined result
Recursion breaks the array or string into smaller parts, solves the smallest part, then combines results back up.
