Please give a solution to this problem.