my answer of leetcode