leetcode solutions -August