add solution for dp.1