my solution to leetcode OJ problems