Solved problem 48 in scala using BigInt
Solved problem 47 in scala