Leetcode solutions (c++)