leetcode solutions -C++