My code in leetcode