Pergunta de entrevista da empresa Amazon

Group input strings by permutations and output as a set. For example, if your input is: "abc, acb, bce, dce, cde" then your output is: "(abc, acb) (bce) (dce, cde)". Assume all input strings are of the same size. Didn't actually have to write the code for this one, but rather gave an in-depth step-by-step explanation using data structures and time and space complexity.