new leetcode solution