結果 : length of last word leetcode solution java