leetcode oj solution of mine