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