Create Triangle.cpp

actually we need no extra space for this problem.