Update Python Problem 39
Add C++ Problem 39