leetcode questions in c++