Leetcode Solution Python String Concatenation