leetcode 2 and test