Basic class for solution
Cheating
Use recursion for calculating the grains
Calculating total grains