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
Call recursion on smaller array/string
Combine current result with recursive call result
Return combined result
End
Recursion breaks the array or string into smaller parts, processes one element, then calls itself on the rest until a base case is reached.