Added a solution for euler 50
.