Aug-18-2020, 03:07 PM
Are you sure is says "recursively"? This is a really bad problem for using recursion. I cannot think of a recursive solution that isn't silly. "array of characters" is also odd. Why would you have an "array" of characters instead of a str (or possibly a list).