[Euler] Add a solution for Problem #189.