Solve problem 102 using PHP.
Solve problem 102 using Haskell.