C++ sourcce code I have write in leetcode!