summarize the coding interview problems, wrote by cpp.