[Haskell]: Add Eular Problem 2.

Signed-off-by: Edward O'Callaghan <victoredwardocallaghan@gmail.com>
[Haskell]: Fix horrible O-complexity of Eular Problem 2.

Signed-off-by: Edward O'Callaghan <victoredwardocallaghan@gmail.com>