Description
Question-1
Given two strings A and B, the task is to print all the non-repeating words out of the two given sentences.
input: A = “I have a blue pen”, B = “I got a red pen”
Output: have blue got red
Explanation:
The words have, blue, got and red have not been repeated in either the same sentence or another
sentence.
Question-2
Write a program to print duplicate characters from a string?