add solution for problem 25