map declaration for storing key value pair means for storing subproblem result
static Dictionary < string , bool > mp = new Dictionary < string , bool > ( ) ; static bool isScramble ( string S1 , string S2 ) {