test code leetcode