Adding solution for level 12.