Answer for the problem