Adding solution to the problem 102.