Generate all possible permutations of words in a SentenceGiven a string S, the task is to print permutations of all words in a sentence.Examples:Input: S = “sky is blue”Output:  sky is bluesky blue isis sky blueis blue skyblue sky isblue is skyInput: S =” Do what you love”Output:Do what you loveDo what love youDo you […]

Continue Reading