Create candy.cpp

Similar to trap-water question, scan left to right then right to left.