Another leetcode solution