my answers to leetcode 151