add solution for plus one problem