my solution to leetcode oj