add solution for problem-1
add solution for problem-2