my accepted code in Leetcode OJ