Solve problem 44 using PHP.