my code for leetcode oj