my code for leetcodes