find the permutation relating %7Ba%2Cb%2Cc%2Cd%2Ce%2Cf%2Cg%7D with %7Ba%2Cb%2Cg%2Ce%2Cf%2Cc%2Cd%7D