Implemented strategy pattern to implement SharedPreference. This code will be useful for large project where a common Preference class is needed to maintain SharedPreference works.