Update leetcode solution