Implemented Problem13
Implemented problem 50