Adding solution for Euler 50