My code for LeetCode