Create puddle_1.cpp

Another solution, and its time complexity is O(n).