begin to write the leetcode