add solution to 10 problem