My solution about https://oj.leetcode.com question