add test and solution for problem 12