public boolean isScramble(String s1, String s2) {
		// Start typing your Java solution below
		// DO NOT write main() function
		if (s1.equals(s2))
			return true;
		int n = s1.length();
		if (n == 1)
			return false;

		flag = new int[n][n][n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				for (int k = 0; k < n; k++) {
					flag[i][j][k] = 0;
				}
			}
		}
		return scramble(s1, s2, 0, 0, n - 1);
	}