Reverse String Leetcode Solution In Python A Namespace