Algorithm to find all possible permutations of a string or arrayBelow Javascript code does that in a nutshell:- [apcode language="jscript"] window.onload = init; // patch init function to window onload event /* init function to be called on window load */ function...