Added sharedpref and factorial

problem in hint of factorial activity.