my solution of Leetcode OJ