leetcode submission 4 with test case