← Microsoft questions

Print all permutations of a string

Filed under Microsoft · Also reported at BNY Mellon, Citrix, Fidelity Investments, Infosys, Larsen & Toubro, OYO, Persistent, PropTiger and 3 more

Given a string of characters, write a function to generate and return all possible permutations of the characters in the string.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.