Implemented problem 48
Implemented without biginteger